diff options
author | Loic Dachary <loic@dachary.org> | 2018-04-01 11:37:04 +0200 |
---|---|---|
committer | Pierre Ozoux <pierre@ozoux.net> | 2018-04-01 11:37:04 +0200 |
commit | e01caa961ff579ba753e7e55a4ef987c199938fa (patch) | |
tree | b16a9f96047835ef1dd9d91eb8de74f8f7f4bb7d /update.sh | |
parent | e49cfb4433cbbd6c906d6fa03d5804b79f9911b8 (diff) |
apache: set the remote ip from X-Real-IP by default (#297)11.0.8-apache11.0.811.0-apache11.011-apache11
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,7 +18,7 @@ declare -A base=( ) declare -A extras=( - [apache]='\nRUN a2enmod rewrite' + [apache]='\nRUN a2enmod rewrite remoteip ;\\\n {\\\n echo RemoteIPHeader X-Real-IP ;\\\n echo RemoteIPTrustedProxy 10.0.0.0/8 ;\\\n echo RemoteIPTrustedProxy 172.16.0.0/12 ;\\\n echo RemoteIPTrustedProxy 192.168.0.0/16 ;\\\n } > /etc/apache2/conf-available/remoteip.conf;\\\n a2enconf remoteip' [fpm]='' [fpm-alpine]='' ) @@ -68,7 +68,7 @@ function create_variant() { s/%%VERSION%%/'"$fullversion"'/g; s/%%BASE_DOWNLOAD_URL%%/'"$2"'/g; s/%%CMD%%/'"${cmd[$variant]}"'/g; - s/%%VARIANT_EXTRAS%%/'"${extras[$variant]}"'/g; + s|%%VARIANT_EXTRAS%%|'"${extras[$variant]}"'|g; s/%%APCU_VERSION%%/'"${pecl_versions[APCu]}"'/g; s/%%MEMCACHED_VERSION%%/'"${pecl_versions[memcached]}"'/g; s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/g; |