@@ -49,11 +49,7 @@ server {
49
49
gzip_buffers 4 8k;
50
50
gzip_types text/plain application/xhtml+xml text/css application/xml application/xml+rss text/javascript application/javascript application/x-javascript
51
51
gzip_proxied any;
52
- gzip_disable "MSIE [1-6]\.";
53
-
54
- # add global x-content-type-options header
55
- add_header Cache-Control public;
56
- add_header X-Cache-Status $upstream_cache_status;
52
+ gzip_disable "MSIE [1-6]\.";
57
53
58
54
location / {
59
55
proxy_pass http://docker_varnish;
@@ -74,7 +70,7 @@ server {
74
70
proxy_connect_timeout 90;
75
71
proxy_send_timeout 90;
76
72
proxy_read_timeout 90;
77
- proxy_request_buffering off;
73
+ proxy_request_buffering off;
78
74
#
79
75
# Mitigate httpoxy attack
80
76
proxy_set_header Proxy "";
@@ -104,16 +100,7 @@ server {
104
100
allow all;
105
101
log_not_found off;
106
102
access_log off;
107
- }
108
- #
109
- # caching of files
110
- location ~* \.(ico|pdf|flv)$ {
111
- expires 1y;
112
- }
113
- location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
114
- expires max;
115
- log_not_found off;
116
- }
103
+ }
117
104
#
118
105
access_log off;
119
106
error_log /var/log/nginx/${NGINX_HOST}.error.log error;
@@ -139,7 +126,7 @@ server {
139
126
}
140
127
141
128
# Mitigate https://httpoxy.org/ vulnerabilities
142
- fastcgi_param HTTP_PROXY "";
129
+ fastcgi_param HTTP_PROXY "";
143
130
144
131
fastcgi_pass docker_webserver;
145
132
fastcgi_index index.php;
0 commit comments