Skip to content

Commit ad47129

Browse files
committed
🔨Add proxy_host/app_url variable
fixes #12
1 parent 7743f0e commit ad47129

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎bookstack/config.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"remote_mysql_username": "str?",
3030
"remote_mysql_password": "password?",
3131
"remote_mysql_port": "int?",
32+
"proxy_host": "str?",
3233
"log_level": "list(trace|debug|info|notice|warning|error|fatal)?",
3334
"certfile": "str",
3435
"keyfile": "str",

‎bookstack/rootfs/etc/services.d/php-fpm/run‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Runs the PHP-FPM daemon
55
# ==============================================================================
66
export APP_KEY
7+
export APP_URL
78
export DB_DATABASE
89
export DB_HOST
910
export DB_PASSWORD
@@ -26,6 +27,10 @@ else
2627
DB_PORT=$(bashio::services "mysql" "port")
2728
fi
2829

30+
if bashio::config.has_value 'proxy_host';then
31+
APP_URL=$(bashio::config "proxy_host")
32+
fi
33+
2934
bashio::log.info "Installing/updating Database"
3035
php /var/www/bookstack/artisan migrate --force
3136

0 commit comments

Comments
 (0)