1
Fork 0

Don't log certain paths

This commit is contained in:
Jake Howard 2020-04-10 12:25:21 +01:00
parent a1e99c347d
commit 59720a3fb5
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -14,11 +14,9 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /dev/stdout;
access_log /dev/stdout;
access_log /var/log/nginx/access.log;
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
sendfile on;
@ -29,18 +27,18 @@ http {
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
location ~* ^\/(_matrix|stats|js|scss|img|css|fonts|webfonts)+? {
access_log off;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}