2024-11-13 15:51:44 -06:00
|
|
|
listen = "127.0.0.1:3000"
|
|
|
|
enable_cache = false
|
|
|
|
index_redirect = { permanent = false, url = "https://mi.yumechi.jp/" }
|
|
|
|
allow_unknown = false
|
2024-11-19 03:23:28 -06:00
|
|
|
max_x_forwarded_for = 0
|
2024-11-13 15:51:44 -06:00
|
|
|
|
2024-11-14 23:54:59 -06:00
|
|
|
# you need AppArmor and the policy loaded to use this
|
|
|
|
[sandbox.apparmor]
|
|
|
|
serve = "yumechi-no-kuni-proxy-worker//serve"
|
|
|
|
image_hat = "image"
|
|
|
|
|
2024-11-13 15:51:44 -06:00
|
|
|
[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"
|
2024-11-13 16:27:49 -06:00
|
|
|
allow_svg_passthrough = false
|
2024-11-13 15:51:44 -06:00
|
|
|
|
2024-11-19 03:23:28 -06:00
|
|
|
[[rate_limit]]
|
|
|
|
replenish_every = 50
|
|
|
|
burst = 256
|
|
|
|
|
|
|
|
[[rate_limit]]
|
|
|
|
key = "500ms"
|
|
|
|
min_request_duration = 500
|
2024-11-15 22:31:11 -06:00
|
|
|
replenish_every = 200
|
2024-11-19 03:23:28 -06:00
|
|
|
burst = 64
|
|
|
|
|
|
|
|
[[rate_limit]]
|
|
|
|
key = "1500ms"
|
|
|
|
min_request_duration = 1500
|
|
|
|
replenish_every = 1500
|
|
|
|
burst = 16
|