Fallback to HTTP when no cert is available and letsencrypt is enabled, fixes #35
This commit is contained in:
7
nginx/start.sh
Executable file
7
nginx/start.sh
Executable 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;'
|
||||
Reference in New Issue
Block a user