fix(api): 仅信任配置的反向代理转发客户端 IP (#39)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
fu500f
2026-10-31 00:44:04 +00:00
co-authored by Devin AI
parent 36f9c95fa7
commit 667e6d0f00
11 changed files with 373 additions and 15 deletions
+3
View File
@@ -6,6 +6,9 @@ POSTGRES_DB=opengoods
MINIO_ROOT_USER=opengoods
MINIO_ROOT_PASSWORD=change-me
# Empty uses loopback and private-network defaults; use "none" to trust no proxies.
OPENGOODS_TRUSTED_PROXIES=
# Admin console (served at /ping). Set a strong password and a random JWT secret.
GOODS_ADMIN_USER=admin
GOODS_ADMIN_PASSWORD=change-me