0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-12-26 02:56:13 +01:00
nextcloud-docker/20.0-beta/fpm-alpine/config/reverse-proxy.config.php
tilosp-bot 9faeb26025 Run update.sh
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
2020-08-27 19:55:44 +00:00

25 lines
674 B
PHP

<?php
$overwriteHost = getenv('OVERWRITEHOST');
if ($overwriteHost) {
$CONFIG['overwritehost'] = $overwriteHost;
}
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
if ($overwriteProtocol) {
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
}
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
if ($overwriteWebRoot) {
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
}
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
if ($overwriteCondAddr) {
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
}
$trustedProxies = getenv('TRUSTED_PROXIES');
if ($trustedProxies) {
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
}