mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-14 18:35:08 +01:00
Run update.sh
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
8f268a8dc4
commit
97d20ade66
18 changed files with 153 additions and 0 deletions
11
16.0/apache/config/reverse_proxy.config.php
Normal file
11
16.0/apache/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
11
16.0/fpm-alpine/config/reverse_proxy.config.php
Normal file
11
16.0/fpm-alpine/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
11
16.0/fpm/config/reverse_proxy.config.php
Normal file
11
16.0/fpm/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
11
17.0/apache/config/reverse_proxy.config.php
Normal file
11
17.0/apache/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
11
17.0/fpm-alpine/config/reverse_proxy.config.php
Normal file
11
17.0/fpm-alpine/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
11
17.0/fpm/config/reverse_proxy.config.php
Normal file
11
17.0/fpm/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
11
18.0/apache/config/reverse_proxy.config.php
Normal file
11
18.0/apache/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
11
18.0/fpm-alpine/config/reverse_proxy.config.php
Normal file
11
18.0/fpm-alpine/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
11
18.0/fpm/config/reverse_proxy.config.php
Normal file
11
18.0/fpm/config/reverse_proxy.config.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
|
||||
if ($trustedProxies) {
|
||||
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$trustedProxies = null;
|
||||
}
|
||||
|
||||
$CONFIG['trusted_proxies'] = $trustedProxies;
|
|
@ -43,6 +43,12 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null; then
|
||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||
a2disconf remoteip
|
||||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue