-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchapi.conf
More file actions
56 lines (44 loc) · 1.47 KB
/
chapi.conf
File metadata and controls
56 lines (44 loc) · 1.47 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
# CHAPI - ChaCha20-based Host Address Protocol over UDP
#
# Copyright (C) 2025 Liu Yu <f78fk@live.com>
#
# This file is part of CHAPI.
#
# CHAPI 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.
#
# CHAPI 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 CHAPI. If not, see <https://www.gnu.org/licenses/>.
# ============================
# Network Settings
# ============================
# IPv4 address to bind the UDP server
bind_address = 0.0.0.0
# UDP port to listen on (1-65535)
port = 10000
# ============================
# Rate Limiting Settings
# ============================
# Enable rate limiting? (0 = disabled, 1 = enabled)
enable_rate_limit = 0
# Time window in seconds for rate limiting
rate_limit_window = 1
# Maximum number of requests allowed per window per IP
rate_limit_count = 1
# Maximum number of concurrent clients tracked for rate limiting
max_clients = 1024
# ============================
# Logging Settings
# ============================
# Logging level:
# 0 = Off
# 1 = Errors only
# 2 = Info (default)
log_level = 2