mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-16 11:25:09 +01:00
Merge reverse proxy configs
Signed-off-by: András Maróy <andras@maroy.hu>
This commit is contained in:
parent
35225b51f1
commit
8911a4ba50
20 changed files with 150 additions and 260 deletions
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -1,35 +1,35 @@
|
|||
<?php
|
||||
$overwritehost = getenv('OVERWRITEHOST');
|
||||
if ($overwritehost) {
|
||||
$CONFIG['overwritehost'] = $overwritehost;
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteprotocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwritewebroot) {
|
||||
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwritecondaddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trusted_proxies) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
Loading…
Add table
Reference in a new issue