Skip to content

Instantly share code, notes, and snippets.

@Moros1138
Created May 20, 2018 12:37
Show Gist options
  • Save Moros1138/3bd20873443abea99a3fee9643dc2f93 to your computer and use it in GitHub Desktop.
Save Moros1138/3bd20873443abea99a3fee9643dc2f93 to your computer and use it in GitHub Desktop.
Nginx MFC Websocket Proxy Configuration Example
# SAMPLE QUICK NGINX MFC CHAT REVERSE PROXY CONFIGURATION
#
# Example websocket URI wss://your.example.com/mfcchat/fcsl
#
upstream mfcchat {
server xchat108.myfreecams.com:8080;
server xchat61.myfreecams.com:8080;
server xchat94.myfreecams.com:8080;
server xchat109.myfreecams.com:8080;
server xchat22.myfreecams.com:8080;
server xchat47.myfreecams.com:8080;
server xchat48.myfreecams.com:8080;
server xchat49.myfreecams.com:8080;
server xchat50.myfreecams.com:8080;
server xchat51.myfreecams.com:8080;
server xchat52.myfreecams.com:8080;
server xchat53.myfreecams.com:8080;
server xchat54.myfreecams.com:8080;
server xchat26.myfreecams.com:8080;
server ychat30.myfreecams.com:8080;
server ychat31.myfreecams.com:8080;
server xchat95.myfreecams.com:8080;
server xchat20.myfreecams.com:8080;
server xchat111.myfreecams.com:8080;
server xchat112.myfreecams.com:8080;
server xchat113.myfreecams.com:8080;
server xchat114.myfreecams.com:8080;
server xchat115.myfreecams.com:8080;
server xchat116.myfreecams.com:8080;
server xchat118.myfreecams.com:8080;
server xchat119.myfreecams.com:8080;
server xchat42.myfreecams.com:8080;
server xchat43.myfreecams.com:8080;
server xchat44.myfreecams.com:8080;
server ychat32.myfreecams.com:8080;
server xchat58.myfreecams.com:8080;
server xchat27.myfreecams.com:8080;
server xchat45.myfreecams.com:8080;
server xchat46.myfreecams.com:8080;
server xchat39.myfreecams.com:8080;
server ychat33.myfreecams.com:8080;
server xchat59.myfreecams.com:8080;
server xchat120.myfreecams.com:8080;
server xchat121.myfreecams.com:8080;
server xchat122.myfreecams.com:8080;
server xchat123.myfreecams.com:8080;
server xchat124.myfreecams.com:8080;
server xchat125.myfreecams.com:8080;
server xchat126.myfreecams.com:8080;
server xchat67.myfreecams.com:8080;
server xchat66.myfreecams.com:8080;
server xchat62.myfreecams.com:8080;
server xchat63.myfreecams.com:8080;
server xchat64.myfreecams.com:8080;
server xchat65.myfreecams.com:8080;
server xchat23.myfreecams.com:8080;
server xchat24.myfreecams.com:8080;
server xchat25.myfreecams.com:8080;
server xchat69.myfreecams.com:8080;
server xchat70.myfreecams.com:8080;
server xchat71.myfreecams.com:8080;
server xchat72.myfreecams.com:8080;
server xchat73.myfreecams.com:8080;
server xchat74.myfreecams.com:8080;
server xchat75.myfreecams.com:8080;
server xchat76.myfreecams.com:8080;
server xchat77.myfreecams.com:8080;
server xchat60.myfreecams.com:8080;
server xchat80.myfreecams.com:8080;
server xchat28.myfreecams.com:8080;
server xchat29.myfreecams.com:8080;
server xchat30.myfreecams.com:8080;
server xchat31.myfreecams.com:8080;
server xchat32.myfreecams.com:8080;
server xchat33.myfreecams.com:8080;
server xchat34.myfreecams.com:8080;
server xchat35.myfreecams.com:8080;
server xchat36.myfreecams.com:8080;
server xchat90.myfreecams.com:8080;
server xchat91.myfreecams.com:8080;
server xchat92.myfreecams.com:8080;
server xchat93.myfreecams.com:8080;
server xchat81.myfreecams.com:8080;
server xchat83.myfreecams.com:8080;
server xchat79.myfreecams.com:8080;
server xchat68.myfreecams.com:8080;
server xchat78.myfreecams.com:8080;
server xchat84.myfreecams.com:8080;
server xchat85.myfreecams.com:8080;
server xchat86.myfreecams.com:8080;
server xchat87.myfreecams.com:8080;
server xchat88.myfreecams.com:8080;
server xchat89.myfreecams.com:8080;
server xchat96.myfreecams.com:8080;
server xchat97.myfreecams.com:8080;
server xchat98.myfreecams.com:8080;
server xchat99.myfreecams.com:8080;
server xchat100.myfreecams.com:8080;
server xchat101.myfreecams.com:8080;
server xchat102.myfreecams.com:8080;
server xchat103.myfreecams.com:8080;
server xchat104.myfreecams.com:8080;
server xchat105.myfreecams.com:8080;
server xchat106.myfreecams.com:8080;
server xchat127.myfreecams.com:8080;
}
server {
# listen, server name, and ssl config
...
location /mfcchat/ {
proxy_pass http://mfcchat/;
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