Skip to content

Instantly share code, notes, and snippets.

View moyus's full-sized avatar

moyu moyus

View GitHub Profile
@moyus
moyus / nginx-proxy-port.conf
Created January 13, 2019 11:41
use nginx proxy to local port application.
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# websocket support
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";