Attempt at caddyfile/proxy, simplification
The idea of proxying in front of Garage may be warranted, to handle some of the ways that it subdomains further. However, I'm not there yet.
This commit is contained in:
@@ -19,6 +19,9 @@ if [[ ! -f /app/data/.initialized ]]; then
|
||||
# If the end-user moves the domain... this will break.
|
||||
sed -e 's/CLOUDRON_APP_DOMAIN/'"${CLOUDRON_APP_DOMAIN}"'/g' /garage/garage.toml > /app/data/garage.toml
|
||||
|
||||
# For redirecting /health to admin.DOMAIN/health
|
||||
sed -e 's/CLOUDRON_APP_DOMAIN/'"${CLOUDRON_APP_DOMAIN}"'/g' /garage/caddyfile > /app/data/caddyfile
|
||||
|
||||
# Generate an RPC secret file. This is used for clusters.
|
||||
# We don't have clusters, but garage wantses it.
|
||||
# It is precious to garage.
|
||||
@@ -30,4 +33,6 @@ fi
|
||||
|
||||
# Chown the things and run.
|
||||
chown -R cloudron:cloudron /app/data/garage
|
||||
|
||||
# gosu cloudron:cloudron caddy run --config /app/data/caddyfile --adapter caddyfile &
|
||||
gosu cloudron:cloudron /usr/bin/garage server
|
||||
|
||||
Reference in New Issue
Block a user