mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
nginx_proxy: Fix the use of subfolders in certificate files (#1359)
This commit is contained in:
@@ -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;"
|
||||
|
||||
Reference in New Issue
Block a user