0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-17 20:05:09 +01:00
nextcloud-docker/.config/reverse-proxy.config.php
András Maróy e16056c2e6 Store environment variables in vars in reverse-proxy config
Signed-off-by: András Maróy <andras@maroy.hu>
2020-04-08 20:13:27 +02:00

35 lines
877 B
PHP

<?php
$overwritehost = getenv('OVERWRITEHOST');
if ($overwritehost) {
$CONFIG['overwritehost'] = $overwritehost;
} else {
$CONFIG['overwritehost'] = null;
}
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
if ($overwriteprotocol) {
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
} else {
$CONFIG['overwriteprotocol'] = null;
}
$overwritewebroot = getenv('OVERWRITEWEBROOT');
if ($overwritewebroot) {
$CONFIG['overwritewebroot'] = $overwritewebroot;
} else {
$CONFIG['overwritewebroot'] = null;
}
$overwritecondaddr = getenv('OVERWRITECONDADDR');
if ($overwritecondaddr) {
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
} else {
$CONFIG['overwritecondaddr'] = null;
}
$trusted_proxies = getenv('TRUSTED_PROXIES');
if ($trusted_proxies) {
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
} else {
$CONFIG['trusted_proxies'] = null;
}