From 1ac16c0dafd8656eb8d25d3878c3bb015ae62c6a Mon Sep 17 00:00:00 2001 From: Lorenz Brun Date: Sat, 9 Jan 2016 02:06:01 +0100 Subject: [PATCH] Allows to set the user-facing URL, fixes #12 --- config.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.inc.php b/config.inc.php index 90c38d9..37ea1df 100644 --- a/config.inc.php +++ b/config.inc.php @@ -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 */