mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
adding logic to specifcy client-ip header from proxy
This commit is contained in:
parent
630f2957de
commit
926967b6e7
5 changed files with 65 additions and 224 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue