]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Add manual configuration for root URL
[github/shaarli/Shaarli.git] / index.php
index 869f42de1352eafb5ec95bf44de6ca2c1b29855e..b10397dda2d079cb785caa6fddef262d77331503 100644 (file)
--- a/index.php
+++ b/index.php
@@ -35,6 +35,9 @@ use Slim\App;
 
 $conf = new ConfigManager();
 
+// Manually override root URL for complex server configurations
+define('SHAARLI_ROOT_URL', $conf->get('general.root_url', null));
+
 // In dev mode, throw exception on any warning
 if ($conf->get('dev.debug', false)) {
     // See all errors (for debugging only)