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
# This is part of WHY2
# Copyright (C) 2022-2026 Václav Šmejkal
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Network
= "0.0.0.0" # Server address
= 1204 # Server port
# Voice Chat
= true # Enable (changing requires restart)
# Appearance
= "WHY2 Server" # Name of the server
= "server" # Username server will use (changing requires restart)
# Cleanup
= 300 # Seconds waiting for client message before stopping communication (+- 5 seconds)
# Restrictions
= true # Allow new users to register
= true # Allow only clients with same version as server
= 20 # Maximal number of clients connected at the same time
= 10 # Maximal number of non-authenticated clients
= 3 # Maximal number of clients from same IP
= 50 # Maximal size (MB) of file uploads
# Auth
= 3 # Times asking client for username/registration password (a valid, long enough password)
= 10 # Seconds waiting for authentication
= 12 # Minimal password length
= 20 # Maximal username length
= 4 # Minimal username length
# Spam
= true # Spam protection
= 2000000 # Maximal packet size (2MB)
= 256 # Maximal text message length
= 750 # Minimal ms delay between user messages (to prevent spamming)
= 3 # Maximal 'spam' messages that can be sent without getting disconnected
# Channel
= 20 # Maximal length of channel name