Skip to content

Commit

Permalink
feat: update nextcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
johackim committed Feb 23, 2024
1 parent 9e48ba7 commit 6cee391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stacks/nextcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# php occ --no-warnings app:enable --force richdocuments
# php occ --no-warnings config:app:set richdocuments wopi_url --value="https://collabora.localhost"
# php occ --no-warnings config:app:set richdocuments wopi_allowlist --value=10.0.0.0/8
# php occ --no-warnings config:system:set maintenance_window_start --type=integer --value=1

version: '3.8'

Expand Down Expand Up @@ -40,11 +41,12 @@ services:
- /bin/sh
- -c
- |
cp /etc/nginx/nginx-nextcloud.conf /etc/nginx/nginx.conf
cp $${NGINX_CONF} /etc/nginx/nginx.conf
sed -i -e 's/app:9000/'$$STACK_NAME'_app:9000/g' /etc/nginx/nginx.conf
nginx -g 'daemon off;'
environment:
- STACK_NAME={{ index .Service.Labels "com.docker.stack.namespace" }}
- NGINX_CONF=${NGINX_CONF:-/etc/nginx/nginx-nextcloud.conf}
volumes:
- ${VOLUME_PATH}nextcloud:/var/www/html:cached
deploy:
Expand Down

0 comments on commit 6cee391

Please sign in to comment.