mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-14 18:35:08 +01:00
Add reverse proxy config to 19.0-beta images
Signed-off-by: András Maróy <andras@maroy.hu>
This commit is contained in:
parent
45fcb1dbbe
commit
8b4bb96e53
6 changed files with 105 additions and 33 deletions
35
19.0-beta/apache/config/reverse-proxy.config.php
Normal file
35
19.0-beta/apache/config/reverse-proxy.config.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$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;
|
35
19.0-beta/fpm-alpine/config/reverse-proxy.config.php
Normal file
35
19.0-beta/fpm-alpine/config/reverse-proxy.config.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$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;
|
35
19.0-beta/fpm/config/reverse-proxy.config.php
Normal file
35
19.0-beta/fpm/config/reverse-proxy.config.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
$overwriteHost = getenv('OVERWRITEHOST');
|
||||
if ($overwriteHost) {
|
||||
$CONFIG['overwritehost'] = $overwriteHost;
|
||||
} else {
|
||||
$CONFIG['overwritehost'] = null;
|
||||
}
|
||||
|
||||
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
||||
if ($overwriteProtocol) {
|
||||
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
||||
} else {
|
||||
$CONFIG['overwriteprotocol'] = null;
|
||||
}
|
||||
|
||||
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
||||
if ($overwriteWebRoot) {
|
||||
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
||||
} else {
|
||||
$CONFIG['overwritewebroot'] = null;
|
||||
}
|
||||
|
||||
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
||||
if ($overwriteCondAddr) {
|
||||
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
||||
} else {
|
||||
$CONFIG['overwritecondaddr'] = null;
|
||||
}
|
||||
|
||||
$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