mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-15 19:05:09 +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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; 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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; 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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; 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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; 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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; 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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; 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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; 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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; 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"
|
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 expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||||
if [ -n "${REDIS_HOST+x}" ]; then
|
if [ -n "${REDIS_HOST+x}" ]; then
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue