-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplugins.toml
More file actions
66 lines (56 loc) · 2.18 KB
/
plugins.toml
File metadata and controls
66 lines (56 loc) · 2.18 KB
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
# ============================================================================
# DyingStar plugins configuration
# ============================================================================
#
[ds_game_server]
log_level = "info"
game_servers = ["ws://127.0.0.1:8980", "ws://127.0.0.1:8981"]
# Values posible for servers_mode:
# * "single" (only 1 server)
# * "development" (multiple servers, use game_servers list)
# * "production" (multiple servers, will use kubernetes to create and start servers on demand, so ignore game_servers list)
servers_mode = "single"
# Split rule (ignored in single mode). Possible values:
# * "fps:20" => split when last 10 fps (get by serverinfo) is under 20 in this example (prefer this for production)
# * "players:3" => split when more than 3 players are connected on a server
split_rule = "fps:20"
[ds_genericprops]
log_level = "info"
[ds_player_authentication]
log_level = "info"
[ds_props]
log_level = "info"
[ds_services]
log_level = "info"
resources_dynamic_address = "service-resourcesdynamic:9200"
[ds_audio]
log_level = "info"
# ============================================================================
# ds_bridge — WebSocket bridge to external services
# Each service entry defines a WS server to connect to and which Horizon events
# to subscribe and forward. Events received from the service are re-emitted
# back into the Horizon event system.
#
# subscribe key format:
# "core:<event_name>" — subscribe to a core Horizon event
# "plugin:<plugin_name>:<event>" — subscribe to a plugin-to-plugin event
# ============================================================================
[ds_bridge]
log_level = "debug"
# Example service: uncomment and configure as needed
# [[ds_bridge.services]]
# name = "scoring"
# url = "ws://scoring-service:8080"
# subscribe = [
# "core:player_connected",
# "core:player_disconnected",
# "plugin:ds_player_authentication:player_authenticated",
# ]
[[ds_bridge.services]]
name = "persistence"
url = "ws://service-persistence:9100/ws"
subscribe = [
"plugin:genericprops:create_object",
"plugin:genericprops:create_object_from_gameserver",
"plugin:bridge_persistence:get_all_items"
]