chore: update Nginx proxy configuration to use variable resolution and bind start script to all interfaces
This commit is contained in:
+2
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user