feat!: universal redesign — drop Minecraft stack, single-crate architecture
- remove Java plugins (velocity/paper), dashboard, all MC-specific code
(handshake, death_code, varint, hostname-HMAC); available in history pre-v0.2
- merge crates/* into one package with src/bin/{rampart,rampart-manager,rampart-cli}
- ProtocolHandler trait + registry (no implementations yet), universal PoW kept
- XDP: universal L3/L4 filter (xdp/core/) + pluggable hook API (xdp/hooks/),
fix IPv6 saddr bug; clang build verified
- docs: bilingual knowledge base (docs/kb/: attacks x4, defense-levels,
practice x3), rewrite README/architecture for universal concept
- TODO.md v4.0: <=300-line module limit, competitor benchmark section (ref/)
- deploy/CI/docs cleanup: no MC references, new binary names
cargo build/clippy(-D warnings)/test green (55 tests)
This commit is contained in:
parent
0b53ed720b
commit
15f474486a
179 changed files with 5044 additions and 11519 deletions
|
|
@ -1,39 +1,44 @@
|
|||
# Rampart edge — единый конфиг (схема: src/config/sections.rs)
|
||||
|
||||
[bind]
|
||||
address = "0.0.0.0"
|
||||
port = 25565
|
||||
|
||||
[backend]
|
||||
address = "velocity"
|
||||
port = 25577
|
||||
|
||||
[hmac]
|
||||
secret = "test_secret_32_bytes_long_for_integration_test"
|
||||
# Generic TCP-бэкенды за edge-нодой (addr:port)
|
||||
upstreams = ["127.0.0.1:25566"]
|
||||
|
||||
[workers]
|
||||
count = 2
|
||||
count = 4
|
||||
|
||||
[limits]
|
||||
handshake_timeout_secs = 5
|
||||
max_connections_per_ip = 10
|
||||
rate_limit_status_pps = 2
|
||||
rate_limit_login_pps = 5
|
||||
rate_limit_burst = 10
|
||||
rate_limit_pps = 5.0
|
||||
rate_limit_burst = 10.0
|
||||
|
||||
[ban]
|
||||
ban_duration_secs = 3600
|
||||
|
||||
[store]
|
||||
redis_url = "redis://redis:6379/0"
|
||||
redis_url = ""
|
||||
blacklist_cache_ttl_secs = 300
|
||||
clickhouse_url = ""
|
||||
|
||||
[xdp]
|
||||
enabled = false
|
||||
interface = "eth0"
|
||||
|
||||
[logging]
|
||||
level = "debug"
|
||||
level = "info"
|
||||
format = "text"
|
||||
|
||||
[metrics]
|
||||
enabled = true
|
||||
port = 9090
|
||||
|
||||
[xdp]
|
||||
enabled = false
|
||||
|
||||
[pow]
|
||||
enabled = false
|
||||
difficulty = 4
|
||||
|
||||
whitelist = ["127.0.0.1", "::1"]
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
velocity:
|
||||
enabled: false
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
server-port=25566
|
||||
online-mode=false
|
||||
motd=Rampart Test Server
|
||||
max-players=20
|
||||
spawn-protection=0
|
||||
difficulty=peaceful
|
||||
gamemode=creative
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
bind = "0.0.0.0:25577"
|
||||
motd = "Rampart Test"
|
||||
online-mode = false
|
||||
show-max-players = 100
|
||||
player-info-forwarding-mode = "NONE"
|
||||
try-compressions-on-connect = false
|
||||
|
||||
[servers]
|
||||
paper = "paper:25566"
|
||||
|
||||
[forced-hosts]
|
||||
"play.example.com" = "paper"
|
||||
Loading…
Add table
Add a link
Reference in a new issue