OPC # 0002: Fix BOM issue in nginx.conf and dnsmasq.conf

This commit is contained in:
amadzarak
2026-04-25 22:27:20 -04:00
parent 80050cbedb
commit a27febdd55
2 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -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 address=/.clarity.test/127.0.0.1
# Don't read /etc/resolv.conf or /etc/hosts # Don't read /etc/resolv.conf or /etc/hosts
+1 -4
View File
@@ -1,9 +1,8 @@
events { events {
worker_connections 1024; worker_connections 1024;
} }
http { http {
# Use Docker embedded DNS so container names resolve dynamically
resolver 127.0.0.11 valid=5s ipv6=off; resolver 127.0.0.11 valid=5s ipv6=off;
log_format main '$remote_addr - $remote_user [$time_local] "$request"' log_format main '$remote_addr - $remote_user [$time_local] "$request"'
@@ -13,12 +12,10 @@ http {
access_log /var/log/nginx/access.log main; access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log warn; error_log /var/log/nginx/error.log warn;
# HTTP → HTTPS redirect
server { server {
listen 80 default_server; listen 80 default_server;
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
# Per-tenant server blocks dropped by provisioning worker
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
} }