Skip to content

Commit 4e6c30e

Browse files
committed
Update proxy.conf.template
1 parent c57e10d commit 4e6c30e

File tree

1 file changed

+21
-34
lines changed

1 file changed

+21
-34
lines changed

proxy/templates/proxy.conf.template

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ map $scheme $proxy_x_forwarded_ssl {
77
https on;
88
}
99

10-
server_tokens off;
11-
proxy_hide_header X-Powered-By;
12-
1310
server {
1411
listen ${NGINX_PORT} default_server;
1512
listen [::]:${NGINX_PORT} ipv6only=on default_server;
@@ -37,19 +34,6 @@ server {
3734
#ssl_trusted_certificate /etc/letsencrypt/live/${NGINX_HOST}/chain.pem;
3835
#ssl_dhparam /etc/letsencrypt/ssl-dhparam.pem;
3936
include /etc/letsencrypt/options-ssl-nginx.conf;
40-
#
41-
client_max_body_size 8m;
42-
proxy_headers_hash_max_size 768;
43-
proxy_headers_hash_bucket_size 128;
44-
#
45-
# global gzip on
46-
gzip on;
47-
gzip_min_length 10240;
48-
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml image/svg+xml;
49-
gzip_disable "MSIE [1-6]\.";
50-
51-
add_header Cache-Control public;
52-
add_header X-Cache-Status $upstream_cache_status;
5337

5438
location / {
5539
proxy_pass http://docker_webserver;
@@ -59,8 +43,8 @@ server {
5943
proxy_set_header Host $host;
6044
proxy_set_header X-Forwarded-Host $host;
6145
proxy_set_header X-Forwarded-Port $server_port;
62-
proxy_set_header Upgrade $http_upgrade;
63-
proxy_set_header Connection "Upgrade";
46+
proxy_set_header Upgrade $http_upgrade;
47+
proxy_set_header Connection "Upgrade";
6448
proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
6549
#
6650
proxy_redirect off;
@@ -77,22 +61,25 @@ server {
7761
}
7862
#
7963
# deny access to .htaccess vb. files, if Apache's document root
80-
#
81-
location ~* \.(svg|svgz)$ {
82-
types {}
83-
default_type image/svg+xml;
84-
}
85-
location = /favicon.ico {
86-
log_not_found off;
87-
}
88-
location = /robots.txt {
89-
allow all;
90-
log_not_found off;
91-
}
92-
location ~/\. {
93-
deny all;
94-
log_not_found off;
95-
}
64+
location ~/\. {
65+
deny all;
66+
log_not_found off;
67+
}
68+
#
69+
location ~ /.well-known {
70+
allow all;
71+
}
72+
#
73+
location = /favicon.ico {
74+
log_not_found off;
75+
access_log off;
76+
}
77+
#
78+
location = /robots.txt {
79+
allow all;
80+
log_not_found off;
81+
access_log off;
82+
}
9683
#
9784
access_log off;
9885
error_log /var/log/nginx/${NGINX_HOST}.error.log error;

0 commit comments

Comments
 (0)