Fallback to HTTP when no cert is available and letsencrypt is enabled, fixes #35

This commit is contained in:
Pierre Jaury
2017-02-02 23:17:15 +01:00
parent 25d8b9e614
commit a0eeb76fbe
3 changed files with 39 additions and 0 deletions

7
nginx/start.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
if [[ ! -z ENABLE_CERTBOT && ! -f /certs/cert.pem ]]; then
cp /etc/nginx/nginx.conf.fallback /etc/nginx/nginx.conf
fi
nginx -g 'daemon off;'