Fix no letsencrypt

This commit is contained in:
Weves
2023-11-13 14:02:05 -08:00
committed by Chris Weaver
parent 69644b266e
commit 0a0e672b35

View File

@@ -96,8 +96,8 @@ services:
# Without this we've seen issues where nginx shows no error logs but
# does not recieve any traffic
command: >
/bin/sh -c "sleep 10 &&
envsubst '$$\{DOMAIN\}' < /etc/nginx/conf.d/app.conf.template.dev > /etc/nginx/conf.d/app.conf &&
/bin/sh -c "sleep 10 &&
envsubst '$$\{DOMAIN\} $$\{SSL_CERT_FILE_NAME\} $$\{SSL_CERT_KEY_FILE_NAME\}' < /etc/nginx/conf.d/app.conf.template.no-letsencrypt > /etc/nginx/conf.d/app.conf &&
while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\""
env_file:
- .env.nginx