Skip to content

Commit

Permalink
🔨Add proxy_host/app_url variable
Browse files Browse the repository at this point in the history
fixes #12
  • Loading branch information
sinclairpaul committed Apr 1, 2020
1 parent 7743f0e commit ad47129
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions bookstack/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions bookstack/rootfs/etc/services.d/php-fpm/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Runs the PHP-FPM daemon
# ==============================================================================
export APP_KEY
export APP_URL
export DB_DATABASE
export DB_HOST
export DB_PASSWORD
Expand All @@ -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

Expand Down

0 comments on commit ad47129

Please sign in to comment.