Skip to content

Commit 3f40e4d

Browse files
authored
Merge pull request #1 from talltechdude/feature/custom-config
Added optional custom nginx config support
2 parents 52c155a + 7cc8728 commit 3f40e4d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

proxy-manager/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"boot": "auto",
2121
"hassio_api": true,
2222
"hassio_role": "default",
23-
"map": ["ssl:rw"],
23+
"map": ["ssl:rw","share:ro"],
2424
"options": {},
2525
"schema": {
2626
"log_level": "list(trace|debug|info|notice|warning|error|fatal)?"

proxy-manager/rootfs/etc/cont-init.d/npm.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ fi
9090

9191
ln -sf /ssl/nginxproxymanager /etc/letsencrypt
9292

93+
if bashio::fs.directory_exists "/share/npm"; then
94+
bashio::log.info "Adding link to /share/npm for custom config files"
95+
rm -f /data/nginx/custom || true
96+
ln -sf /share/npm /data/nginx/custom
97+
fi
98+
9399
# NGinx needs this file to be able to start.
94100
# It will not continously log into it.
95101
mkdir -p /var/lib/nginx/logs

0 commit comments

Comments
 (0)