-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml
More file actions
115 lines (95 loc) · 4 KB
/
Copy pathconfig.toml
File metadata and controls
115 lines (95 loc) · 4 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Kether.pl Kether Internal Services Server Configuration
# This file is automatically generated. Edit values as needed.
# Frontend Admin Steam IDs (64-bit numeric format)
# Users with these Steam IDs have admin permissions on the frontend
# Add Steam IDs here, one per line for clarity, divided by commas
frontend_admins = []
# L4D2 Server Configuration
# Server address used for !status command and server queries (main server)
[server]
ip = "192.168.1.102"
port = 27015
# Secondary L4D2 Server Configuration
# Server address used for !status command and server queries (secondary server; usually for testing purposes)
[server2]
ip = ""
port = 0
[steam]
# Steam Web API key for fetching user data (name, avatar, profile, etc.)
# Get your key from: https://steamcommunity.com/dev/apikey
web_api_key = ""
# Steam Bot Configuration
# These credentials are used for the bot that posts !sub requests to Steam group chat
[steam.bot]
username = ""
password = ""
# Steam Group Chat Configuration
# IDs for the Steam group chat where !sub requests are posted
[steam.chat]
group_id = 0
chat_id = 0
# Whether commands can be invoked without mentioning the bot (true/false)
# If true, simply typing "!plan 19" will work without @mentioning the bot
commands_without_mention = false
# Dedicated chat room id for planning messages (!plan / !plan clear)
# Uses the same steam.chat.group_id; set to 0 to disable
plan_chat_id = 0
# If true, planning command responses are posted only to plan_chat_id
# If plan_chat_id is 0, this behaves as disabled
dedicated_plan_chat = false
# If true, removes non-bot messages from the dedicated planning chat
# Works only when plan_chat_id is configured
plan_chat_keep_clean = false
# If true, planning messages mention the user who executed the command
plan_mention_user = false
# Dedicated chat room id for poll/question messages (!poll / !q)
# Uses the same steam.chat.group_id; set to 0 to disable
poll_chat_id = 0
# If true, poll command responses are posted only to poll_chat_id
# If poll_chat_id is 0, this behaves as disabled
dedicated_poll_chat = false
# If true, removes the invoking user command message after poll posting
poll_chat_remove_command_message = false
# If true, poll question messages mention the user who executed the command
poll_mention_user = false
# Admin-only SteamBot command settings (!mute / !unmute / !lsmute)
[steam.chat.admin]
# Steam IDs allowed to use admin-only commands (when admins_same_as_frontend = false)
admins = []
# When true, admin commands use frontend_admins instead of admins
admins_same_as_frontend = true
# Maximum mute duration in minutes (default 7 days = 10080)
mute_max_minutes = 10080
# When true, commands from muted users are ignored
ignore_muted_commands = true
# Session / Steam OpenID authentication (website login)
[auth]
# HMAC secret for signing session JWTs. Set a long random string in production.
session_secret = ""
# Frontend URL to redirect to after successful Steam login (must match where users browse the site)
frontend_url = "https://kether.pl"
# Optional cookie Domain attribute (leave empty for host-only cookies on the API host)
cookie_domain = ""
# Session lifetime in hours (default: 7 days)
session_ttl_hours = 168
# Allowed Origin/Referer values for CSRF on cookie-authenticated POST/PUT/PATCH/DELETE
csrf_allowed_origins = ["https://21370000.xyz", "https://kether.pl"]
# Open LiveServerInfo endpoint settings (GET /api/LiveServerInfo/<ip>/<port>)
[live_server_info]
open_endpoint_enabled = true
block_private_ips = true
rate_limit_per_ip_per_minute = 20
rate_limit_burst = 5
# Authenticated Steam REST proxy rate limits and caching
[steam_rest]
requests_per_minute_per_user = 10
requests_per_minute_per_ip = 30
response_cache_ttl_secs = 300
# KetherServerDaemon registry bridge (maps list sync)
# Shared bearer token for daemon push-sync and website-to-daemon API requests.
# Set it to a long random string matching the daemon backend_api_key.
[server_daemon]
registry_path = "maps_registry.json"
sync_api_key = ""
daemon_url = "http://127.0.0.1:8080"
stale_after_secs = 600