tweak nginx logging & configurable rubgram prices

This commit is contained in:
Dreamgineer
2025-12-11 17:28:16 +07:00 Unverified
parent d8651187ab
commit 4ec4431c84
10 changed files with 176 additions and 197 deletions
+14 -1
View File
@@ -1,6 +1,19 @@
events {}
http {
map $uri $loggable {
default 1;
~^/_next 0;
=/favicon.webp 0;
=/robots.txt 0;
~^/api/.*/count$ 0;
}
log_format clean ' $request_method $uri $status';
access_log /var/log/nginx/access.log clean if=$loggable;
upstream backend {
# Use the service name defined in docker-compose.yml
server app:3000;
@@ -10,7 +23,7 @@ http {
listen 80;
# Docker's internal DNS resolver
resolver 127.0.0.11 valid=5s;
resolver 127.0.0.11 valid=1s ipv6=off;
location / {
proxy_pass http://backend;