mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
only replace variables that are defined, try to fix nginx template
This commit is contained in:
parent
58f391f167
commit
f511882f57
@ -102,4 +102,4 @@ sudo certbot --certonly
|
||||
|
||||
# Generate gradido.conf from template
|
||||
# TODO order - first certbot, then nginx setup
|
||||
envsubst < gradido.conf.template > gradido.conf
|
||||
envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < gradido.conf.template > gradido.conf
|
||||
@ -1,5 +1,5 @@
|
||||
if ($NGINX_SSL = 'true')
|
||||
server {
|
||||
if ($NGINX_SSL = 'true') {
|
||||
if ($host = $NGINX_SERVER_NAME) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user