Enha: cookies for local dev
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user