Skip to content

Commit 5c7dd53

Browse files
authored
Merge pull request #307 from theseion/fix/missing-nginx-module
fix: deactivate use of missing module
2 parents a366f6c + ee10080 commit 5c7dd53

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,14 @@ These variables are common to image variants and will set defaults based on the
206206
207207
### Nginx ENV Variables
208208

209-
| Name | Description|
210-
| -------- | ------------------------------------------------------------------- |
211-
| 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: `"*"`). |
209+
<!-- temporarily hidden -->
210+
<!-- | 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: `"*"`). |
212211
| CORS_HEADER_403_ALLOW_METHODS | The value of the [Access-Control-Request-Method](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method) header for `403` responses. Determines the allowed request methods for the resource. Default: `"GET, POST, PUT, DELETE, OPTIONS"` |
213212
| CORS_HEADER_403_CONTENT_TYPE | The value of the `Content-Type` header for `403` responses. Default: (`"text/plain"`) |
214-
| CORS_HEADER_403_MAX_AGE | The value of the [Access-Control-Max-Age](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age) header for `403` responses. The number of seconds that preflight requests for this resource may be cached by the browser. (Default: `3600`) |
213+
| CORS_HEADER_403_MAX_AGE | The value of the [Access-Control-Max-Age](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age) header for `403` responses. The number of seconds that preflight requests for this resource may be cached by the browser. (Default: `3600`) | -->
214+
215+
| Name | Description|
216+
| -------- | ------------------------------------------------------------------- |
215217
| 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_) |
216218
| KEEPALIVE_TIMEOUT | Number of seconds for a keep-alive client connection to stay open on the server side (Default: `60s`) |
217219
| NGINX_ALWAYS_TLS_REDIRECT | A string value indicating if http should redirect to https (Allowed values: `on`, `off`. Default: `off`) |

nginx/templates/conf.d/default.conf.template

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ server {
6262
location / {
6363
client_max_body_size 0;
6464

65-
include includes/cors.conf;
65+
# temporarily disabled, since the upstream image doesn't include the required module
66+
# include includes/cors.conf;
6667
include includes/proxy_backend.conf;
6768

6869
index index.html index.htm;

nginx/templates/nginx.conf.template

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
load_module modules/ngx_http_modsecurity_module.so;
22
# allows to add cors headers when replying with 403
3-
load_module modules/ngx_http_headers_more_filter_module.so;
3+
# temporarily disabled, since the upstream image doesn't include the module
4+
# load_module modules/ngx_http_headers_more_filter_module.so;
45

56
worker_processes auto;
67
pid /tmp/nginx.pid;

0 commit comments

Comments
 (0)