Skip to content

Commit eda8c48

Browse files
committed
Add example to server-network setup
1 parent c36e549 commit eda8c48

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

wiki/getting-started/ServerNetworks.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,43 @@ same folder from them all (e.g. mounting a shared drive/folder). Either of them
2828
- configure either the `storages/sql.conf` on all server to the same sql-server, or the `storages/file.conf` on
2929
all server to the same (shared) folder
3030
- configure all maps on all servers to use that storage
31-
- choose one of those servers to be the server that will host the web-app. On this server:
32-
create an extra map-config like [here: "Hosting static maps"]({{site.baseurl}}/wiki/getting-started/Configuration#hosting-static-maps) for each
33-
map that is on the **other** servers
31+
- choose one of those servers to be the server that will host the web-app.
32+
**On this server:** create an extra map-config like [here: "Hosting static maps"]({{site.baseurl}}/wiki/getting-started/Configuration#hosting-static-maps) for each
33+
map that is on the **other** servers. *(example below)*
3434

3535
Now the maps from the other servers should be visible on the web-app of this one server.
3636

37+
> #### Example
38+
> Assuming your servers/maps look like this:
39+
> ```
40+
> server1/...
41+
> s1_map1.conf
42+
> s1_map2.conf
43+
>
44+
> server2/...
45+
> s2_map1.conf
46+
> s2_map2.conf
47+
> ```
48+
> the maps are all stored on the same database ...
49+
> now if you want to see the maps from `server2` also on the webapp from `server1`, then you need to add these files:
50+
> ```
51+
> server1/...
52+
> s1_map1.conf
53+
> s1_map2.conf
54+
> s2_map1.conf <<-
55+
> s2_map2.conf <<-
56+
>
57+
> server2/...
58+
> s2_map1.conf
59+
> s2_map2.conf
60+
> ```
61+
> to your `server1` and the content of those two extra files should look like this:
62+
> ```hocon
63+
> storage: "sql"
64+
> ```
65+
> nothing else.
66+
67+
### Live updates
3768
If you want to have live updating markers and player-markers on all maps, turn on the `write-markers-interval` and the
3869
`write-players-interval` in each `plugin.conf` on the other servers.
3970
**Or** if you plan on hosting the entire map with an external-webserver you can reverse-proxy each maps live-interface to the correct

0 commit comments

Comments
 (0)