chore: update Nginx proxy configuration to use variable resolution and bind start script to all interfaces

This commit is contained in:
2026-07-25 23:13:04 +07:00 Unverified
parent 80aa49c39c
commit d770d07e59
2 changed files with 3 additions and 6 deletions
+2 -5
View File
@@ -29,16 +29,13 @@ http {
log_format clean ' $request_method $uri $status';
access_log /var/log/nginx/access.log clean if=$loggable;
upstream backend {
server app:3000;
}
server {
listen 80;
resolver 127.0.0.11 valid=5s ipv6=off;
set $backend http://app:3000;
location / {
proxy_pass http://backend;
proxy_pass $backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+1 -1
View File
@@ -6,7 +6,7 @@
"dev:t": "PORT=4000 bun --bun next dev --turbopack",
"dev": "PORT=4000 bun --bun next dev",
"build": "next build",
"start": "next start -H $HOSTNAME",
"start": "next start -H 0.0.0.0",
"lint": "eslint",
"up": "docker compose up -d --build",
"logs": "docker compose logs -f erika",