Skip to content

Commit

Permalink
Cas de l'absence de configuration REVERSE_PROXY_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
teymour committed Sep 5, 2023
1 parent f04e30d commit 4119b7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
$f3->set('COMMIT', getCommit());

$f3->config(__DIR__.'/config/config.ini');
if (!$f3->exists('REVERSE_PROXY_URL')) {
$f3->set('REVERSE_PROXY_URL', '');
}

if($f3->get('PDF_STORAGE_PATH') && !preg_match('|/$|', $f3->get('PDF_STORAGE_PATH'))) {
$f3->set('PDF_STORAGE_PATH', $f3->get('PDF_STORAGE_PATH').'/');
Expand Down

0 comments on commit 4119b7a

Please sign in to comment.