-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathCaddyfile
More file actions
27 lines (24 loc) · 815 Bytes
/
Copy pathCaddyfile
File metadata and controls
27 lines (24 loc) · 815 Bytes
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
{
servers {
protocols h1 h2
}
}
{$PANEL_DOMAIN} {
encode gzip zstd
# --- TLS 1.2 fallback (disabled by default) ---
# RKN/TSPU (June 2026) intermittently freezes TLS 1.3 handshakes on
# "suspicious" RU subnets, causing the panel to load "через раз".
# Empirically, pinning TLS 1.2 restores access for many users.
# Note: HTTP/2 (global `protocols h1 h2`) is the primary mitigation — it
# multiplexes all requests over a single TLS connection so the
# >3-handshakes-per-60s TSPU trigger never fires. Enable the block below
# only if users still report flapping access on this Caddy-based deploy.
# tls {
# protocols tls1.2 tls1.2
# }
reverse_proxy backend:3000 {
transport http {
versions 1.1
}
}
}