Skip to content

Instantly share code, notes, and snippets.

@uzbekdev1
Created October 4, 2021 21:08
Show Gist options
  • Save uzbekdev1/889135b1a31217318b4a6aa6c520ffaf to your computer and use it in GitHub Desktop.
Save uzbekdev1/889135b1a31217318b4a6aa6c520ffaf to your computer and use it in GitHub Desktop.
nginx http and ws proxy
location /ws {
proxy_pass http://http://178.33.123.109:8080/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location /api {
rewrite /api/(.*) /$1 break;
proxy_pass http://http://178.33.123.109:8080/api;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment