Subpath handling for Gotify (#533) (#875)

This commit is contained in:
Trung Ng 2025-11-19 13:59:12 -08:00 committed by GitHub
parent 9216661dda
commit de7a4e97f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import (
func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Configuration) (*gin.Engine, func()) {
g := gin.New()
g.RemoveExtraSlash = true
g.RemoteIPHeaders = []string{"X-Forwarded-For"}
g.SetTrustedProxies(conf.Server.TrustedProxies)
g.ForwardedByClientIP = true