tweak nginx logging & configurable rubgram prices
This commit is contained in:
+14
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user