From a27febdd558159a2d3e34cdaba9ba048f33a7bb4 Mon Sep 17 00:00:00 2001 From: amadzarak Date: Sat, 25 Apr 2026 22:27:20 -0400 Subject: [PATCH] OPC # 0002: Fix BOM issue in nginx.conf and dnsmasq.conf --- infra/dnsmasq/dnsmasq.conf | 2 +- infra/nginx/nginx.conf | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/infra/dnsmasq/dnsmasq.conf b/infra/dnsmasq/dnsmasq.conf index 63d1327..ba7ee72 100644 --- a/infra/dnsmasq/dnsmasq.conf +++ b/infra/dnsmasq/dnsmasq.conf @@ -1,4 +1,4 @@ -# Resolve *.clarity.test → 127.0.0.1 so browser hits nginx on the host +# Resolve *.clarity.test -> 127.0.0.1 so browser hits nginx on the host address=/.clarity.test/127.0.0.1 # Don't read /etc/resolv.conf or /etc/hosts diff --git a/infra/nginx/nginx.conf b/infra/nginx/nginx.conf index f2858b7..dc756f1 100644 --- a/infra/nginx/nginx.conf +++ b/infra/nginx/nginx.conf @@ -1,24 +1,21 @@ -events { +events { worker_connections 1024; } http { - # Use Docker embedded DNS so container names resolve dynamically resolver 127.0.0.11 valid=5s ipv6=off; - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' + log_format main '$remote_addr - $remote_user [$time_local] "$request"' + '$status $body_bytes_sent "$http_referer"' '"$http_user_agent"'; access_log /var/log/nginx/access.log main; error_log /var/log/nginx/error.log warn; - # HTTP → HTTPS redirect server { listen 80 default_server; return 301 https://$host$request_uri; } - # Per-tenant server blocks dropped by provisioning worker include /etc/nginx/conf.d/*.conf; }