Skip to content

Commit 70ff302

Browse files
authored
Merge pull request #2 from nov-solutions/muffle-nginx-logs
hide some lame logs, clutter
2 parents 89af306 + 76caf37 commit 70ff302

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

nginx/dev/site.conf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,26 @@ server {
3434
access_log off;
3535
}
3636

37+
location /_next/static/ {
38+
proxy_pass http://nextjs;
39+
proxy_set_header Host $host;
40+
access_log off;
41+
}
42+
43+
location /_next/webpack-hmr {
44+
proxy_pass http://nextjs;
45+
proxy_set_header Host $host;
46+
proxy_set_header Upgrade $http_upgrade;
47+
proxy_set_header Connection 'upgrade';
48+
access_log off;
49+
}
50+
51+
location /assets/ {
52+
proxy_pass http://nextjs;
53+
proxy_set_header Host $host;
54+
access_log off;
55+
}
56+
3757
location / {
3858
proxy_pass http://nextjs;
3959
proxy_set_header Host $host;

0 commit comments

Comments
 (0)