all-in-one/Containers/nextcloud/config/proxy.config.php
Simon L. 151b05ec01 nextcloud: config files: do not compare against false
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-08-09 16:36:16 +02:00

13 lines
350 B
PHP

<?php
if (getenv('HTTP_PROXY')) {
$CONFIG['proxy'] = getenv('HTTP_PROXY');
}
if (getenv('HTTPS_PROXY')) {
$CONFIG['proxy'] = getenv('HTTPS_PROXY');
}
if (getenv('PROXY_USER_PASSWORD')) {
$CONFIG['proxyuserpwd'] = getenv('PROXY_USER_PASSWORD');
}
if (getenv('NO_PROXY')) {
$CONFIG['proxyexclude'] = explode(',', getenv('NO_PROXY'));
}