forked from DockerizedCraft/Core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconnection-balancer.yml
85 lines (74 loc) · 2.68 KB
/
connection-balancer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Care if you disable it you will need to configure default, priority and fallback servers by hand
# Or use an different connection balancer handler plugin (Is it compatible?)
# Type: Boolean
enabled: true
# Outputs extra information
# Type: Boolean
debug: true
# To store player session for the reconnect handler
# Type: Section
session-store:
# Type: Section
redis:
# Type: String
host: "redis"
# Type: String
password: ~
# Type: Integer
port: 6379
# Type: Boolean
ssl: true
# Environment variables of the containers
# Type: Section
environment-variables:
# If the environment variable is set the server will be added to the priority list of connectionbalancer
# This plugin implemented a custom load balancer which will use defined groups
# Leaving the env variable blank will add the server to the default group
# Type: String
group: SERVER_GROUP
# To enable forced host for the single instance.
# You can also configure a forced host for a whole group. See groups config. I would recommend to do so events with single instances
# i.e. docker run -e SERVER_FORCED_HOST=muehre.craftmania.de playerworld:latest
# Type: String
forced-host: SERVER_FORCED_HOST
# Type: Section
# check docker.event_listener.environment_variables.group_key
groups:
# Server group configuration
# default group is used if a a container does not have a group environment variable. You can also configure it here
# Type: Section<Group>
# Group:
# - strategy(String): balance is the only strategy atm. I will implement more as soon as they are required
# - forced_host(String) Optional: people joining over this host will be send to this group
# - can-reconnect(Boolean) Default: false: if a player can reconnect to this group. Usefull to disable for i.e minigames
# - restricted(Boolean) Default: false: Is a permission required?
eu-lobby:
strategy: balance
can-reconnect: true
restricted: false
game-xy:
strategy: balance
can-reconnect: false
restricted: false
private:
strategy: balance
can-reconnect: true
restricted: false
us-lobby:
strategy: balance
can-reconnect: true
restricted: false
# The default group a user is connected to if he freshly joins or his group was restricted in re-connections.
# And not forced host is matching
# Type: String
default-group: eu-lobby
# Commands that players can execute to join a certain group
# Type Section<String, String>
join-commands:
lobby: eu-lobby
hub: eu-lobby
# Setting force hosts. Use {dot} placeholder for dots to not break yaml syntax
# Type: Section<String, String>
forced-hosts:
"us{dot}mynetwork{dot}net": "us-lobby"
"eu{dot}mynetwork{dot}net": "eu-lobby"