Allows to set the user-facing URL, fixes #12

This commit is contained in:
Lorenz Brun
2016-01-09 02:06:01 +01:00
parent 5c58a06622
commit 1ac16c0daf
+5
View File
@@ -22,6 +22,11 @@ if (isset($_ENV['PMA_ARBITRARY']) && $_ENV['PMA_ARBITRARY'] === '1') {
$cfg['AllowArbitraryServer'] = true;
}
/* Play nice behind reverse proxys */
if (isset($_ENV['PMA_ABSOLUTE_URI'])) {
$cfg['PmaAbsoluteUri'] = trim($_ENV['PMA_ABSOLUTE_URI']);
}
/* Figure out hosts */
/* Fallback to default linked */