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 639d16207a Expose reverse proxy related configuration as environment variables
Signed-off-by: András Maróy <andras@maroy.hu>
2020-04-05 15:18:39 +02:00

20 lines
498 B
PHP

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