From ad471297a847835f166f1933ab7aae2a4bf463fa Mon Sep 17 00:00:00 2001 From: Paul Sinclair Date: Wed, 1 Apr 2020 19:27:42 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8Add=20proxy=5Fhost/app=5Furl=20vari?= =?UTF-8?q?able=20fixes=20#12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bookstack/config.json | 1 + bookstack/rootfs/etc/services.d/php-fpm/run | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/bookstack/config.json b/bookstack/config.json index 4e3bca4..6c68745 100644 --- a/bookstack/config.json +++ b/bookstack/config.json @@ -29,6 +29,7 @@ "remote_mysql_username": "str?", "remote_mysql_password": "password?", "remote_mysql_port": "int?", + "proxy_host": "str?", "log_level": "list(trace|debug|info|notice|warning|error|fatal)?", "certfile": "str", "keyfile": "str", diff --git a/bookstack/rootfs/etc/services.d/php-fpm/run b/bookstack/rootfs/etc/services.d/php-fpm/run index a5cfc9a..8adaa02 100644 --- a/bookstack/rootfs/etc/services.d/php-fpm/run +++ b/bookstack/rootfs/etc/services.d/php-fpm/run @@ -4,6 +4,7 @@ # Runs the PHP-FPM daemon # ============================================================================== export APP_KEY +export APP_URL export DB_DATABASE export DB_HOST export DB_PASSWORD @@ -26,6 +27,10 @@ else DB_PORT=$(bashio::services "mysql" "port") fi +if bashio::config.has_value 'proxy_host';then + APP_URL=$(bashio::config "proxy_host") +fi + bashio::log.info "Installing/updating Database" php /var/www/bookstack/artisan migrate --force