nginx_proxy: Fix the use of subfolders in certificate files (#1359)

This commit is contained in:
Franck Nijhof
2020-05-27 14:33:52 +02:00
committed by GitHub
parent fea5a7159f
commit ecb8ce98b2
3 changed files with 7 additions and 3 deletions

View File

@@ -49,8 +49,8 @@ if bashio::config.true 'cloudflare'; then
fi
# Prepare config file
sed -i "s/%%FULLCHAIN%%/$CERTFILE/g" /etc/nginx.conf
sed -i "s/%%PRIVKEY%%/$KEYFILE/g" /etc/nginx.conf
sed -i "s#%%FULLCHAIN%%#$CERTFILE#g" /etc/nginx.conf
sed -i "s#%%PRIVKEY%%#$KEYFILE#g" /etc/nginx.conf
sed -i "s/%%DOMAIN%%/$DOMAIN/g" /etc/nginx.conf
[ -n "$HSTS" ] && HSTS="add_header Strict-Transport-Security \"$HSTS\" always;"