Responsive website for manage RUST server with RCON (Websocket)
421
Responsive website for manage RUST server with RCON (Websocket)
services:
rust-rcon:
image: fizcko/rust-rcon
restart: always
ports:
- 3000:80
upstream rust-rcon{
server 127.0.0.1:3000;
}
server {
listen 80;
server_name rcon.mydomain.com;
location / {
include proxy_params;
proxy_pass http://rust-rcon;
}
}
Now you can reach the website with url http://rcon.mydomain.com
Define
Server : rcon.mydomain.com
Port : 28016
Password : TypeYourRCONPassword
Secure Websocket : False
If this container and the RUST server are in the same host.
upstream rust-rcon{
server 127.0.0.1:3000;
}
upstream rust-ws{
server 127.0.0.1:28016;
}
server {
listen 443 ssl;
server_name rcon.mydomain.com;
ssl_certificate /letsencrypt/live/mydomain.com/fullchain.pem;
ssl_certificate_key /letsencrypt/live/mydomain.com/privkey.pem;
location / {
include proxy_params;
proxy_pass http://rust-rcon;
}
}
server {
listen 443 ssl;
server_name ws.mydomain.com;
ssl_certificate /letsencrypt/live/mydomain.com/fullchain.pem;
ssl_certificate_key /letsencrypt/live/mydomain.com/privkey.pem;
location / {
include proxy_params;
proxy_pass http://rust-ws;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Now you can reach the website with url https://rcon.mydomain.com
Define :
Server : ws.mydomain.com
Port : 443
Password : TypeYourRCONPassword
Secure Websocket : True
Content type
Image
Digest
Size
9.8 MB
Last updated
over 6 years ago
docker pull fizcko/rust-rcon