Created
October 4, 2021 21:08
-
-
Save uzbekdev1/889135b1a31217318b4a6aa6c520ffaf to your computer and use it in GitHub Desktop.
nginx http and ws proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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