all-in-one/Containers/nextcloud/config/proxy.config.php
Simon L. f6fd960ba0 nextcloud: allow to configure proxy options via env
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-08-05 14:01:30 +02:00

13 lines
390 B
PHP

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