A dockerized Remotelyserver, more details at: https://github.com/Jay-Rad/Remotely
Create a docker-compose.yml with the following content:
version: '2'
services:
remotely:
image: virusbrain/remotelyserver:latest
restart: always
ports:
- 8087:5000
volumes:
- remotely-server-data:/root
volumes:
remotely-server-data:
Then run:
# docker-compose up -d
To use Apache2 as ReverseProxy, please use this configuration:
<VirtualHost %YOURDOMAIN%:443>
[...]
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:8087/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:8087/$1 [P,L]
ProxyPreserveHost On
#Proxy Requests to Remotely Server
<LocationMatch "/">
ProxyPass http://localhost:8087/
ProxyPassReverse http://localhost:8087/
</LocationMatch>
<Location "/BrowserHub">
ProxyPass http://localhost:8087/
ProxyPassReverse http://localhost:8087/
</Location>
<LocationMatch "/DeviceHub">
ProxyPass http://localhost:8087/
ProxyPassReverse http://localhost:8087/
</LocationMatch>
<LocationMatch "/RCBrowserHub">
ProxyPass http://localhost:8087/
ProxyPassReverse http://localhost:8087/
</LocationMatch>
<LocationMatch "/RCDeviceHub">
ProxyPass http://localhost:8087/
ProxyPassReverse http://localhost:8087/
</LocationMatch>
[...]
</VirtualHost>
To use nginx as reverse proxy please use the following config:
server {
listen 80;
[...]
server_name %DOMAINNAME%
location / {
proxy_pass http://localhost:8087;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection keep-alive;
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 /BrowserHub {
proxy_pass http://localhost:8087;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection \"upgrade\";
proxy_set_header Host \$host;
proxy_cache_bypass \$http_upgrade;
}
location /DeviceHub {
proxy_pass http://localhost:8087;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection \"upgrade\";
proxy_set_header Host \$host;
proxy_cache_bypass \$http_upgrade;
}
location /RCBrowserHub {
proxy_pass http://localhost:8087;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection \"upgrade\";
proxy_set_header Host \$host;
proxy_cache_bypass \$http_upgrade;
}
location /RCDeviceHub {
proxy_pass http://localhost:8087;
proxy_http_version 1.1;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection \"upgrade\";
proxy_set_header Host \$host;
proxy_cache_bypass \$http_upgrade;
}
}
Content type
Image
Digest
Size
427.9 MB
Last updated
over 6 years ago
docker pull virusbrain/remotelyserver