Skip to content

Instantly share code, notes, and snippets.

@aloha1003
Forked from SiZapPaaiGwat/webpack.nginx.conf
Created May 25, 2017 02:18
Show Gist options
  • Save aloha1003/8e280edfd3940a697fa8564cbf6b00ec to your computer and use it in GitHub Desktop.
Save aloha1003/8e280edfd3940a697fa8564cbf6b00ec to your computer and use it in GitHub Desktop.
webpack-dev-server configuration in nginx on development server
upstream ws_server {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name 10.1.2.225;
location / {
proxy_pass http://ws_server/;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment