mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 13:14:21 +01:00
nginx_proxy: Fix the use of subfolders in certificate files (#1359)
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 3.0.1
|
||||
|
||||
- Fix the use of subfolders with certificate files
|
||||
|
||||
## 3.0
|
||||
|
||||
- Update Alpine to 3.11
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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