Enha: cookies for local dev

This commit is contained in:
Grail Finder
2025-05-09 08:01:25 +03:00
parent 8baf03595e
commit 659c8dbbec
2 changed files with 9 additions and 5 deletions

View File

@ -28,8 +28,10 @@ func LoadConfigOrDefault(fn string) *Config {
if err != nil {
slog.Warn("failed to read config from file, loading default", "error", err)
config.BaseURL = "https://localhost:3000"
config.SessionLifetime = 300
config.SessionLifetime = 30000
config.CookieSecret = "test"
config.ServerConfig.Host = "localhost"
config.ServerConfig.Port = "3000"
}
return config
}