From ee10080d391ab08d01aa073aa6104557f36b587a Mon Sep 17 00:00:00 2001 From: Max Leske <250711+theseion@users.noreply.github.com> Date: Wed, 11 Dec 2024 07:08:01 +0100 Subject: [PATCH] fix: deactivate use of missing module The ngx_http_headers_more_filter_module isn't shipped in the upstream image, which currently breaks our images when nginx tries to load the module at startup. Fixes #306 --- README.md | 10 ++++++---- nginx/templates/conf.d/default.conf.template | 3 ++- nginx/templates/nginx.conf.template | 3 ++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3a7208e..b8b13af 100644 --- a/README.md +++ b/README.md @@ -206,12 +206,14 @@ These variables are common to image variants and will set defaults based on the ### Nginx ENV Variables -| Name | Description| -| -------- | ------------------------------------------------------------------- | -| CORS_HEADER_403_ALLOW_ORIGIN | The value of the [Access-Control-Allow-Origin](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin) header for `403` responses. Determines which origins can access the response. (Default: `"*"`). | + + + +| Name | Description| +| -------- | ------------------------------------------------------------------- | | DNS_SERVER | A string indicating the name servers used to resolve names of upstream servers into addresses. For localhost backend this value should not be defined (Default: _not defined_) | | KEEPALIVE_TIMEOUT | Number of seconds for a keep-alive client connection to stay open on the server side (Default: `60s`) | | NGINX_ALWAYS_TLS_REDIRECT | A string value indicating if http should redirect to https (Allowed values: `on`, `off`. Default: `off`) | diff --git a/nginx/templates/conf.d/default.conf.template b/nginx/templates/conf.d/default.conf.template index 976f262..0ca4d73 100644 --- a/nginx/templates/conf.d/default.conf.template +++ b/nginx/templates/conf.d/default.conf.template @@ -62,7 +62,8 @@ server { location / { client_max_body_size 0; - include includes/cors.conf; + # temporarily disabled, since the upstream image doesn't include the required module + # include includes/cors.conf; include includes/proxy_backend.conf; index index.html index.htm; diff --git a/nginx/templates/nginx.conf.template b/nginx/templates/nginx.conf.template index 53f0c27..6392a38 100644 --- a/nginx/templates/nginx.conf.template +++ b/nginx/templates/nginx.conf.template @@ -1,6 +1,7 @@ load_module modules/ngx_http_modsecurity_module.so; # allows to add cors headers when replying with 403 -load_module modules/ngx_http_headers_more_filter_module.so; +# temporarily disabled, since the upstream image doesn't include the module +# load_module modules/ngx_http_headers_more_filter_module.so; worker_processes auto; pid /tmp/nginx.pid;