Skip to content

Commit caf41d7

Browse files
committed
Update nginx.conf.template
1 parent d06f8d2 commit caf41d7

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

nginx/templates/nginx.conf.template

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ server {
4949
gzip_buffers 4 8k;
5050
gzip_types text/plain application/xhtml+xml text/css application/xml application/xml+rss text/javascript application/javascript application/x-javascript
5151
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]\.";
5753

5854
location / {
5955
proxy_pass http://docker_varnish;
@@ -74,7 +70,7 @@ server {
7470
proxy_connect_timeout 90;
7571
proxy_send_timeout 90;
7672
proxy_read_timeout 90;
77-
proxy_request_buffering off;
73+
proxy_request_buffering off;
7874
#
7975
# Mitigate httpoxy attack
8076
proxy_set_header Proxy "";
@@ -104,16 +100,7 @@ server {
104100
allow all;
105101
log_not_found off;
106102
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+
}
117104
#
118105
access_log off;
119106
error_log /var/log/nginx/${NGINX_HOST}.error.log error;
@@ -139,7 +126,7 @@ server {
139126
}
140127

141128
# Mitigate https://httpoxy.org/ vulnerabilities
142-
fastcgi_param HTTP_PROXY "";
129+
fastcgi_param HTTP_PROXY "";
143130

144131
fastcgi_pass docker_webserver;
145132
fastcgi_index index.php;

0 commit comments

Comments
 (0)