File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -88,4 +88,4 @@ Notable differences from the official [nginx container][]
88
88
[nginx container] : https://hub.docker.com/_/nginx
89
89
[gomplate] : https://docs.gomplate.ca/
90
90
[uwsgi] : https://uwsgi-docs.readthedocs.io/en/latest/
91
- [nginx status] : https://nginx.org/en/docs/http/ngx_http_stub_status_module.html
91
+ [nginx status] : https://nginx.org/en/docs/http/ngx_http_stub_status_module.html
Original file line number Diff line number Diff line change 1
- # Default configuration returns 400 in order to deny any request with an
1
+ # Default configuration returns 400 in order to deny any request with an
2
2
# unrecognized host header (server_name.)
3
3
{{ if (ne .Env.SERVER_NAME "_") }}
4
4
server {
@@ -10,6 +10,8 @@ server {
10
10
11
11
upstream app {
12
12
server {{ .Env.UPSTREAM_SERVER }};
13
+
14
+ keepalive 8; # The maximum number of idle keepalive connections to upstream servers.
13
15
}
14
16
15
17
server {
@@ -21,7 +23,10 @@ server {
21
23
add_header X-Frame-Options "SAMEORIGIN";
22
24
add_header X-XSS-Protection "1; mode=block";
23
25
add_header X-Content-Type-Options "nosniff";
24
-
26
+
27
+ proxy_http_version 1.1;
28
+ proxy_set_header "Connection" "";
29
+
25
30
location / {
26
31
{{ if (eq .Env.PROXY_UWSGI "1") }}
27
32
include /etc/nginx/includes/uwsgi.conf;
You can’t perform that action at this time.
0 commit comments