Set CaddyRoute if not set

Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com>
This commit is contained in:
Jean-Yves 2024-07-16 21:02:41 +02:00
parent f41e861cdb
commit 357a998d4d
No known key found for this signature in database
GPG key ID: 644C8B9C4CABAEF7
2 changed files with 5 additions and 1 deletions

View file

@ -17,6 +17,10 @@ while ! nc -z "$NEXTCLOUD_HOST" 9000; do
sleep 5
done
if [ -z "$CADDY_ROUTES" ]; then
export CADDY_ROUTES="|/browser,0,nextcloud-aio-collabora,9980;/hosting,0,nextcloud-aio-collabora,9980;/cool,0,nextcloud-aio-collabora,9980;/push,1,nextcloud-aio-notify-push,7867;/standalone-signaling,1,nextcloud-aio-talk,8081"
fi
if [ -z "$APACHE_PORT" ]; then
export APACHE_PORT="443"
fi

View file

@ -29,7 +29,7 @@ services:
- TZ=${TIMEZONE}
- APACHE_MAX_SIZE=${APACHE_MAX_SIZE}
- APACHE_MAX_TIME=${NEXTCLOUD_MAX_TIME}
- CADDY_ROUTE="|/browser,0,nextcloud-aio-collabora,9980;/hosting,0,nextcloud-aio-collabora,9980;/cool,0,nextcloud-aio-collabora,9980;/push,1,nextcloud-aio-notify-push,7867;/standalone-signaling,1,nextcloud-aio-talk,8081
- CADDY_ROUTE=|/browser,0,nextcloud-aio-collabora,9980;/hosting,0,nextcloud-aio-collabora,9980;/cool,0,nextcloud-aio-collabora,9980;/push,1,nextcloud-aio-notify-push,7867;/standalone-signaling,1,nextcloud-aio-talk,8081
volumes:
- nextcloud_aio_nextcloud:/var/www/html:ro
- nextcloud_aio_apache:/mnt/data:rw