server { server_name example.com; access_log /var/log/nginx/bin.access.log; error_log /var/log/nginx/bin.error.log error; location / { proxy_pass http://shynet:8080; proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Protocol $scheme; proxy_set_header X-Url-Scheme $scheme; } listen 80; }