Skip to content

Commit

Permalink
Add example to server-network setup
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Jun 9, 2024
1 parent c36e549 commit eda8c48
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions wiki/getting-started/ServerNetworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,43 @@ same folder from them all (e.g. mounting a shared drive/folder). Either of them
- configure either the `storages/sql.conf` on all server to the same sql-server, or the `storages/file.conf` on
all server to the same (shared) folder
- configure all maps on all servers to use that storage
- choose one of those servers to be the server that will host the web-app. On this server:
create an extra map-config like [here: "Hosting static maps"]({{site.baseurl}}/wiki/getting-started/Configuration#hosting-static-maps) for each
map that is on the **other** servers
- choose one of those servers to be the server that will host the web-app.
**On this server:** create an extra map-config like [here: "Hosting static maps"]({{site.baseurl}}/wiki/getting-started/Configuration#hosting-static-maps) for each
map that is on the **other** servers. *(example below)*

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

> #### Example
> Assuming your servers/maps look like this:
> ```
> server1/...
> s1_map1.conf
> s1_map2.conf
>
> server2/...
> s2_map1.conf
> s2_map2.conf
> ```
> the maps are all stored on the same database ...
> now if you want to see the maps from `server2` also on the webapp from `server1`, then you need to add these files:
> ```
> server1/...
> s1_map1.conf
> s1_map2.conf
> s2_map1.conf <<-
> s2_map2.conf <<-
>
> server2/...
> s2_map1.conf
> s2_map2.conf
> ```
> to your `server1` and the content of those two extra files should look like this:
> ```hocon
> storage: "sql"
> ```
> nothing else.
### Live updates
If you want to have live updating markers and player-markers on all maps, turn on the `write-markers-interval` and the
`write-players-interval` in each `plugin.conf` on the other servers.
**Or** if you plan on hosting the entire map with an external-webserver you can reverse-proxy each maps live-interface to the correct
Expand Down

0 comments on commit eda8c48

Please sign in to comment.