feat: take the client address from trusted proxies

This commit is contained in:
DiheChen committed 2026-11-08 21:43:35 +08:00
1 parent ebe6f41c32
commit fa928102d1
12 files changed
+191 -4

No files matched your search

@@ -9,6 +9,7 @@ absolute_redirect off;
location ^~ /api/ {
# 不小于 serve 的请求体上限,请求体就不会写入临时文件,也就不会因此输出纯文本的 warn 日志。
client_body_buffer_size 64k;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://$serve;
}
location ^~ /media/ {