Add cache validity to options

This commit is contained in:
2025-10-10 22:12:48 +02:00
parent afc2068fcc
commit d0075c35cc

View File

@@ -28,6 +28,7 @@ type Options struct {
ClientID string `env:"ESI_CLIENT_ID" description:"EVE SSO client ID"` ClientID string `env:"ESI_CLIENT_ID" description:"EVE SSO client ID"`
RedirectURI string `env:"ESI_REDIRECT_URI" default:"http://localhost:3000/callback" description:"EVE SSO redirect URI"` RedirectURI string `env:"ESI_REDIRECT_URI" default:"http://localhost:3000/callback" description:"EVE SSO redirect URI"`
Scopes []string `env:"ESI_SCOPES" default:"esi-planets.manage_planets.v1" description:"EVE SSO scopes (space-separated)"` Scopes []string `env:"ESI_SCOPES" default:"esi-planets.manage_planets.v1" description:"EVE SSO scopes (space-separated)"`
CacheValidity string `env:"ESI_CACHE_VALIDITY" default:"PT20M" description:"ESI cache validity in duration (e.g. PT20M for 20 minutes)"`
WebhookURL string `env:"WEBHOOK_URL" description:"Webhook URL for notifications"` WebhookURL string `env:"WEBHOOK_URL" description:"Webhook URL for notifications"`
WebhookEmail string `env:"WEBHOOK_EMAIL" description:"Webhook authentication email"` WebhookEmail string `env:"WEBHOOK_EMAIL" description:"Webhook authentication email"`