Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,29 @@ server {
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;
}
# Required for audio forwarding, requires docker env WEB_AUDIO=1
location /websockify-audio {
proxy_pass http://docker-firefox;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;
}
}
```

And for Apache, the following config lines need to be added to a virtual host:

```apacheconf
ProxyPass / http://127.0.0.1:5800/
ProxyPassReverse / http://127.0.0.1:5800/
ProxyPass /websockify "ws://127.0.0.1:5800/websockify" upgrade=websocket
# Required for audio forwarding, requires docker env WEB_AUDIO=1
ProxyPass /websockify-audio "ws://127.0.0.1:5800/websockify-audio" upgrade=websocket
```



### Routing Based on URL Path

In this scenario, the hostname is the same, but different URL paths are used to
Expand Down Expand Up @@ -579,10 +598,28 @@ server {
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;
}
# Required for audio forwarding, requires docker env WEB_AUDIO=1
location /firefox/websockify-audio {
proxy_pass http://docker-firefox/websockify-audio/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;
}
}
}
```

And for Apache, the following config lines need to be added to a virtual host:

```apacheconf
ProxyPass /firefox/ http://127.0.0.1:5800/
ProxyPassReverse /firefox/ http://127.0.0.1:5800/
ProxyPass /firefox/websockify "ws://127.0.0.1:5800/websockify" upgrade=websocket
# Required for audio forwarding, requires docker env WEB_AUDIO=1
ProxyPass /firefox/websockify-audio "ws://127.0.0.1:5800/websockify-audio" upgrade=websocket
```

## Shell Access

To get shell access to the running container, execute the following command:
Expand Down