feat: take the client address from trusted proxies
This commit is contained in:
1 parent
d17477ba59
commit
729e5861f5
13 files changed
+205
-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/ {
|
||||
|
||||
Reference in new issue
Block a user