diff options
author | Paweł Dybiec <pdybiec@stud.cs.uni.wroc.pl> | 2019-12-05 19:31:30 +0100 |
---|---|---|
committer | Paweł Dybiec <pdybiec@stud.cs.uni.wroc.pl> | 2019-12-05 19:31:30 +0100 |
commit | 3883d818839ac2340a4434919084e3178064f62c (patch) | |
tree | 38b2133708b8e56f72bf8a471bb6d28b0ff530ce /compose/nginx/nginx.conf | |
parent | Remove monitoring stuff (diff) |
Remove blockIps from nginx conf
Diffstat (limited to 'compose/nginx/nginx.conf')
-rw-r--r-- | compose/nginx/nginx.conf | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/compose/nginx/nginx.conf b/compose/nginx/nginx.conf index 1e21693..7015aaa 100644 --- a/compose/nginx/nginx.conf +++ b/compose/nginx/nginx.conf @@ -14,9 +14,9 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + log_format main '[$time_local] $remote_addr - $remote_user "$request" ' + '$status "$http_referer" ' + '"$http_user_agent" "$server_name"'; access_log /var/log/nginx/access.log main; ssl_certificate /etc/letsencrypt/live/dybiec.info/fullchain.pem; @@ -51,8 +51,15 @@ http { add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; + server { + listen 80; + allow 127.0.0.1; + allow 172.0.0.0/8; + deny all; + } include /etc/nginx/conf.d/*.conf; - include /etc/nginx/blockIps.conf; error_page 500 501 502 503 504 /50x.html; + } + |