1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-11-30 04:10:01 +01:00

Tempalte dir

This commit is contained in:
binwiederhier 2025-07-16 10:01:59 +02:00
parent 2a468493f9
commit 93e14b73bb
3 changed files with 62 additions and 3 deletions

View file

@ -167,6 +167,7 @@ type Config struct {
WebPushExpiryDuration time.Duration
WebPushExpiryWarningDuration time.Duration
Version string // injected by App
TemplateDirectory string // Directory to load named templates from
}
// NewConfig instantiates a default new server config
@ -257,5 +258,6 @@ func NewConfig() *Config {
WebPushEmailAddress: "",
WebPushExpiryDuration: DefaultWebPushExpiryDuration,
WebPushExpiryWarningDuration: DefaultWebPushExpiryWarningDuration,
TemplateDirectory: "",
}
}