server { listen 80 default_server; listen [::]:80 default_server; # passing to json-api here location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; # attempt to pass proxy_pass http://0.0.0.0:4536; #proxy_set_header: X-Real-IP $remote_addr; } }