mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #265] [CLOSED] feat: add support for TRUSTED_PROXIES environment variable #892
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/265
Author: @savely-krasovsky
Created: 2/24/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
9b5110cfeat: add support for TRUSTED_PROXIES environment variable📊 Changes
2 files changed (+10 additions, -0 deletions)
View changed files
📝
backend/internal/bootstrap/router_bootstrap.go(+7 -0)📝
backend/internal/common/env_config.go(+3 -0)📄 Description
Enable configuration of trusted proxies via a new
TRUSTED_PROXIESenv variable. Unfortunately Gin default ClientIP() logic very obscure. Should fix #263, will test it soon and update.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.