about summary refs log tree commit diff
path: root/compose/nginx/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'compose/nginx/nginx.conf')
-rw-r--r--compose/nginx/nginx.conf15
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;
+    
 }
+