mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Merge pull request #5093 from nextcloud/enh/noid/configure-proxy
nextcloud: allow to configure proxy options via env
This commit is contained in:
commit
35c641265c
1 changed files with 13 additions and 0 deletions
13
Containers/nextcloud/config/proxy.config.php
Normal file
13
Containers/nextcloud/config/proxy.config.php
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?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'));
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue