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 83255f2385 Change reverse proxy default values to null
Signed-off-by: András Maróy <andras@maroy.hu>
2020-04-05 15:35:28 +02:00

30 lines
731 B
PHP

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