Cookie path and env variables added

added cookie path and domain env variables from the flarum.env file propagated to the config.php file
pull/130/head
hynsey 2023-10-07 23:01:40 +01:00
parent 3329c55572
commit 55d767e99d
2 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,11 @@
'prefix' => '<DB_PREF>',
'strict' => false,
),
'cookie' =>
array (
'path' => '<COOKIE_PATH>',
'domain' => '<COOKIE_DOMAIN>',
),
'url' => '<FORUM_URL>',
'paths' => array (
'api' => 'api',

View File

@ -76,6 +76,8 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/pub
-e "s|<DB_PASS>|${DB_PASS}|g" \
-e "s|<DB_PREF>|${DB_PREF}|g" \
-e "s|<DB_PORT>|${DB_PORT}|g" \
-e "s|<COOKIE_PATH>|${COOKIE_PATH}|g" \
-e "s|<COOKIE_DOMAIN>|${COOKIE_DOMAIN}|g" \
-e "s|<FORUM_URL>|${FORUM_URL}|g" /flarum/app/config.php.sample
cp -p /flarum/app/config.php.sample /flarum/app/config.php