Skip to content

Commit 70e7764

Browse files
Escape single quotes
1 parent 52e9c81 commit 70e7764

2 files changed

Lines changed: 36 additions & 8 deletions

File tree

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,27 @@ On first start the server automatically generates two configuration files inside
7878

7979
Players connect via invite code. The code is set by `INVITE_CODE` in your `.env` and is also visible in `server-files/R5/ServerDescription.json` under `InviteCode`. Share it with players who join via **Play → Connect to Server** in-game.
8080

81+
#### LAN connections
82+
83+
If any players are connecting from the same local network, the default `P2P_PROXY_ADDRESS=127.0.0.1` will not work. You must:
84+
85+
1. Set `P2P_PROXY_ADDRESS` to the server machine's LAN IP address (e.g. `192.168.1.100`)
86+
2. Add `network_mode: host` to your `docker-compose.yml` service so the container shares the host's network stack
87+
88+
```yaml
89+
services:
90+
windrose:
91+
image: indifferentbroccoli/windrose-server-docker
92+
restart: unless-stopped
93+
container_name: windrose
94+
stop_grace_period: 30s
95+
network_mode: host
96+
env_file:
97+
- .env
98+
volumes:
99+
- ./server-files:/home/steam/server-files
100+
```
101+
81102
### ServerDescription.json
82103
83104
Located at `server-files/R5/ServerDescription.json`. This file can only be edited while the server is stopped.
@@ -186,6 +207,12 @@ Located at `server-files/R5/Saved/SaveProfiles/Default/RocksDB/<version>/Worlds/
186207
|------|-------------|
187208
| `/home/steam/server-files` | Server installation files, world saves, and configuration |
188209

210+
## Proxmox
211+
212+
If you are hosting this server inside a Proxmox VM or LXC container, set the CPU type to **host**.
213+
214+
Proxmox's default CPU types (e.g. `kvm64`) omit instruction sets that Wine and the server binary may depend on. This can cause the server to fail to start, crash at runtime, or fail silently with no useful output.
215+
189216
## About
190217

191218
This is a Dockerized Windrose dedicated server maintained by [indifferent broccoli](https://indifferentbroccoli.com). We offer [managed Windrose server hosting](https://indifferentbroccoli.com/windrose-server-hosting) if you'd rather not self-host.

scripts/init.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@ term_handler() {
3939

4040
trap 'term_handler' SIGTERM
4141

42+
export INVITE_CODE="${INVITE_CODE:-}"
43+
export SERVER_NAME="${SERVER_NAME:-}"
44+
export SERVER_PASSWORD="${SERVER_PASSWORD:-}"
45+
export MAX_PLAYERS="${MAX_PLAYERS:-10}"
46+
export P2P_PROXY_ADDRESS="${P2P_PROXY_ADDRESS:-}"
47+
export GENERATE_SETTINGS="${GENERATE_SETTINGS:-true}"
48+
4249
# Start the server as steam user
43-
su - steam -c "cd /home/steam/server && \
44-
INVITE_CODE='${INVITE_CODE}' \
45-
SERVER_NAME='${SERVER_NAME}' \
46-
SERVER_PASSWORD='${SERVER_PASSWORD}' \
47-
MAX_PLAYERS='${MAX_PLAYERS:-10}' \
48-
P2P_PROXY_ADDRESS='${P2P_PROXY_ADDRESS:-}' \
49-
GENERATE_SETTINGS='${GENERATE_SETTINGS:-true}' \
50-
./start.sh" &
50+
su - steam -w "INVITE_CODE,SERVER_NAME,SERVER_PASSWORD,MAX_PLAYERS,P2P_PROXY_ADDRESS,GENERATE_SETTINGS" \
51+
-c "cd /home/steam/server && ./start.sh" &
5152

5253
killpid="$!"
5354
wait "$killpid"

0 commit comments

Comments
 (0)