adding logic to specifcy client-ip header from proxy

This commit is contained in:
Kyle Duren 2025-01-05 20:29:08 +00:00
parent 630f2957de
commit 926967b6e7
5 changed files with 65 additions and 224 deletions

View file

@ -144,6 +144,7 @@ type Config struct {
VisitorStatsResetTime time.Time // Time of the day at which to reset visitor stats
VisitorSubscriberRateLimiting bool // Enable subscriber-based rate limiting for UnifiedPush topics
BehindProxy bool
ProxyClientIPHeader string
StripeSecretKey string
StripeWebhookKey string
StripePriceCacheDuration time.Duration
@ -233,6 +234,7 @@ func NewConfig() *Config {
VisitorStatsResetTime: DefaultVisitorStatsResetTime,
VisitorSubscriberRateLimiting: false,
BehindProxy: false,
ProxyClientIPHeader: "",
StripeSecretKey: "",
StripeWebhookKey: "",
StripePriceCacheDuration: DefaultStripePriceCacheDuration,