diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-03 14:51:41 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-09-12 21:39:01 +0200 |
commit | 650a5f09cbeb1c1bef19810c6cc504c06d5b7e87 (patch) | |
tree | 6be70f1658128246e57d39c73e1bc3b13e992de1 /index.php | |
parent | e809908f9e593b2cec11f72849caa1dae6394451 (diff) | |
download | Shaarli-650a5f09cbeb1c1bef19810c6cc504c06d5b7e87.tar.gz Shaarli-650a5f09cbeb1c1bef19810c6cc504c06d5b7e87.tar.zst Shaarli-650a5f09cbeb1c1bef19810c6cc504c06d5b7e87.zip |
Add manual configuration for root URL
This new setting under 'general.root_url' allows to override automatic discovery of Shaarli instance's URL.
Fixes #1339
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -35,6 +35,9 @@ use Slim\App; | |||
35 | 35 | ||
36 | $conf = new ConfigManager(); | 36 | $conf = new ConfigManager(); |
37 | 37 | ||
38 | // Manually override root URL for complex server configurations | ||
39 | define('SHAARLI_ROOT_URL', $conf->get('general.root_url', null)); | ||
40 | |||
38 | // In dev mode, throw exception on any warning | 41 | // In dev mode, throw exception on any warning |
39 | if ($conf->get('dev.debug', false)) { | 42 | if ($conf->get('dev.debug', false)) { |
40 | // See all errors (for debugging only) | 43 | // See all errors (for debugging only) |