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

@@ -1,5 +1,9 @@
# Changelog
## 3.0.1
- Fix the use of subfolders with certificate files
## 3.0
- Update Alpine to 3.11

View File

@@ -1,6 +1,6 @@
{
"name": "NGINX Home Assistant SSL proxy",
"version": "3.0",
"version": "3.0.1",
"slug": "nginx_proxy",
"description": "An SSL/TLS proxy",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/nginx_proxy",

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;"