mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-25 04:40:55 +02:00
Expose reverse proxy related configuration as environment variables
Signed-off-by: András Maróy <andras@maroy.hu>
This commit is contained in:
parent
cf3476d71b
commit
639d16207a
11 changed files with 210 additions and 0 deletions
20
18.0/fpm-alpine/config/reverse-proxy.config.php
Normal file
20
18.0/fpm-alpine/config/reverse-proxy.config.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
if (getenv('OVERWRITEHOST')) {
|
||||
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
|
||||
}
|
||||
|
||||
if (getenv('OVERWRITEPROTOCOL')) {
|
||||
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
|
||||
}
|
||||
|
||||
if (getenv('OVERWRITEWEBROOT')) {
|
||||
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
|
||||
}
|
||||
|
||||
if (getenv('OVERWRITECONDADDR')) {
|
||||
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
|
||||
}
|
||||
|
||||
if (getenv('TRUSTED_PROXIES')) {
|
||||
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue