Skip to content

Commit

Permalink
Add nginx configuration for WebSocket proxy
Browse files Browse the repository at this point in the history
While connecting to ADB via WebSocket, it also need to set additional
header for nginx proxy. Change nginx config for that.
  • Loading branch information
k311093 committed Dec 12, 2024
1 parent 427d79e commit 6dbc580
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ server {

# Host Orchestrator
location / {
# ADB websocket backend
location ~* ^/.*/adb$ {
proxy_pass http://127.0.0.1:2081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}

proxy_pass http://127.0.0.1:2081;

# This is required for uploading huge artifacts.
Expand Down

0 comments on commit 6dbc580

Please sign in to comment.