Add cache validity to options
This commit is contained in:
@@ -25,9 +25,10 @@ type Options struct {
|
|||||||
DBPath string `env:"DB_PATH" default:"eve-pi.db" description:"Database file path"`
|
DBPath string `env:"DB_PATH" default:"eve-pi.db" description:"Database file path"`
|
||||||
Port string `env:"HTTP_SERVER_PORT" default:"3000" description:"HTTP server port"`
|
Port string `env:"HTTP_SERVER_PORT" default:"3000" description:"HTTP server port"`
|
||||||
|
|
||||||
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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user