Skip to content

Commit

Permalink
nginx_proxy: Fix the use of subfolders in certificate files (home-ass…
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored May 27, 2020
1 parent fea5a71 commit ecb8ce9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions nginx_proxy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.1

- Fix the use of subfolders with certificate files

## 3.0

- Update Alpine to 3.11
Expand Down
2 changes: 1 addition & 1 deletion nginx_proxy/config.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions nginx_proxy/data/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;"
Expand Down

0 comments on commit ecb8ce9

Please sign in to comment.