Skip to content

Commit

Permalink
Add forwarded headers to SignalR hub endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Aug 25, 2020
1 parent c09bc76 commit 6a3f086
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Utilities/Remotely_Server_Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ nginxConfig="server {
proxy_set_header Connection \"upgrade\";
proxy_set_header Host \$host;
proxy_cache_bypass \$http_upgrade;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
location /AgentHub {
proxy_pass http://localhost:5000;
Expand All @@ -76,6 +78,8 @@ nginxConfig="server {
proxy_set_header Connection \"upgrade\";
proxy_set_header Host \$host;
proxy_cache_bypass \$http_upgrade;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
location /RCBrowserHub {
Expand All @@ -85,6 +89,8 @@ nginxConfig="server {
proxy_set_header Connection \"upgrade\";
proxy_set_header Host \$host;
proxy_cache_bypass \$http_upgrade;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
location /CasterHub {
proxy_pass http://localhost:5000;
Expand All @@ -93,6 +99,8 @@ nginxConfig="server {
proxy_set_header Connection \"upgrade\";
proxy_set_header Host \$host;
proxy_cache_bypass \$http_upgrade;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
}"

Expand Down

0 comments on commit 6a3f086

Please sign in to comment.