Skip to content

Commit

Permalink
Add ability to enable or disable startup debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jhampson-dbre committed Jul 15, 2023
1 parent a4ef457 commit afb7970
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 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

## 5.0.3

Make enabling startup debugging configurable

## 5.0.2

Add debugging for startup error
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 with WAF",
"version": "5.0.2",
"version": "5.0.3",
"slug": "nginx_proxy_waf",
"description": "An SSL/TLS proxy",
"url": "https://github.com/jhampson-dbre/addon-nginx-proxy-waf",
Expand Down
14 changes: 13 additions & 1 deletion nginx_proxy/rootfs/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/usr/bin/with-contenv bashio
set -ex
set -e

# If there is a problem loading options,
# then we need verbose output to troubleshoot.
# But if the options aren't loading, then we
# can't rely on options config to enable debug
# so we toggle debug with a touch file instead.
DEBUG_TOUCH_FILE=/share/nginx_proxy_waf.debug

if ! bashio::fs.file_exists "${DEBUG_TOUCH_FILE}"; then
bashio::log.info "Addon startup debug is enabled..."
set -x
fi

DHPARAMS_PATH=/data/dhparams.pem

Expand Down

0 comments on commit afb7970

Please sign in to comment.