summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authoradripo <26493496+adripo@users.noreply.github.com>2023-09-17 00:51:45 +0200
committerGitHub <noreply@github.com>2023-09-16 22:51:45 +0000
commit90064ed260e5d87361be37cdc9b987628049145d (patch)
treeff941bed225b9865b5de9f322c86de391a570f80 /update.sh
parent4cd70385b89197c87e928d49c678890d71e9fb83 (diff)
Set Apache LimitRequestBody with env variable APACHE_BODY_LIMIT (#2065)
* feat: set apache LimitRequestBody Signed-off-by: adripo <26493496+adripo@users.noreply.github.com> * feat: APACHE_BODY_LIMIT variable Signed-off-by: adripo <26493496+adripo@users.noreply.github.com> * fix: move ENV to existing VARIANT_EXTRAS Signed-off-by: adripo <26493496+adripo@users.noreply.github.com> * docs: updated var description Signed-off-by: adripo <26493496+adripo@users.noreply.github.com> * fix: remove comment Signed-off-by: adripo <26493496+adripo@users.noreply.github.com> --------- Signed-off-by: adripo <26493496+adripo@users.noreply.github.com>
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.sh b/update.sh
index 3e85ef84..f5e6f019 100755
--- a/update.sh
+++ b/update.sh
@@ -29,7 +29,7 @@ declare -A base=(
)
declare -A extras=(
- [apache]='\nRUN a2enmod headers rewrite remoteip ;\\\n {\\\n echo RemoteIPHeader X-Real-IP ;\\\n echo RemoteIPInternalProxy 10.0.0.0/8 ;\\\n echo RemoteIPInternalProxy 172.16.0.0/12 ;\\\n echo RemoteIPInternalProxy 192.168.0.0/16 ;\\\n } > /etc/apache2/conf-available/remoteip.conf;\\\n a2enconf remoteip'
+ [apache]='\nRUN a2enmod headers rewrite remoteip ; \\\n { \\\n echo '\''RemoteIPHeader X-Real-IP'\''; \\\n echo '\''RemoteIPInternalProxy 10.0.0.0/8'\''; \\\n echo '\''RemoteIPInternalProxy 172.16.0.0/12'\''; \\\n echo '\''RemoteIPInternalProxy 192.168.0.0/16'\''; \\\n } > /etc/apache2/conf-available/remoteip.conf; \\\n a2enconf remoteip\n\n# set apache config LimitRequestBody\nENV APACHE_BODY_LIMIT 1073741824\nRUN { \\\n echo '\''LimitRequestBody ${APACHE_BODY_LIMIT}'\''; \\\n } > /etc/apache2/conf-available/apache-limits.conf; \\\n a2enconf apache-limits'
[fpm]=''
[fpm-alpine]=''
)