yumechi-no-kuni-proxy-worker/local.toml
eternal-flame-AD 58bfea6643
properly detect x_forwarded_for header
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-15 14:28:16 -06:00

25 lines
No EOL
575 B
TOML

listen = "127.0.0.1:3000"
enable_cache = false
index_redirect = { permanent = false, url = "https://mi.yumechi.jp/" }
allow_unknown = false
# you need AppArmor and the policy loaded to use this
[sandbox.apparmor]
serve = "yumechi-no-kuni-proxy-worker//serve"
image_hat = "image"
[fetch]
addr_family = "both"
allow_http = false
via = "yumechi-no-kuni-proxy-worker"
user_agent = "Yumechi-no-Kuni-Proxy-Worker"
[post_process]
enable_redirects = false
normalization = "lazy"
allow_svg_passthrough = false
[rate_limit]
max_x_forwarded_for = 0
replenish_every = 2000
burst = 32