mirror of
https://github.com/pommee/goaway.git
synced 2026-01-06 05:49:35 -06:00
fix: set scheduled blacklist updates to true by default
This commit is contained in:
@@ -151,7 +151,7 @@ func createDefaultSettings(filePath string) (Config, error) {
|
||||
defaultConfig.DNS.TLSKeyFile = ""
|
||||
|
||||
defaultConfig.Dashboard = true
|
||||
defaultConfig.ScheduledBlacklistUpdates = false
|
||||
defaultConfig.ScheduledBlacklistUpdates = true
|
||||
defaultConfig.API.Port = GetEnvAsIntWithDefault("WEBSITE_PORT", 8080)
|
||||
defaultConfig.API.Authentication = true
|
||||
defaultConfig.API.RateLimiterConfig = ratelimit.RateLimiterConfig{Enabled: true, MaxTries: 5, Window: 5}
|
||||
|
||||
@@ -63,7 +63,7 @@ export function Settings() {
|
||||
port: 8080,
|
||||
authentication: true
|
||||
},
|
||||
scheduledBlacklistUpdates: false,
|
||||
scheduledBlacklistUpdates: true,
|
||||
statisticsRetention: 7,
|
||||
loggingEnabled: true,
|
||||
logLevel: 1,
|
||||
@@ -964,7 +964,7 @@ const SETTINGS_SECTIONS = [
|
||||
label: "Scheduled Blacklist Updates *",
|
||||
key: "scheduledBlacklistUpdates",
|
||||
explanation: "Automatically update blacklists on a regular schedule.",
|
||||
default: false,
|
||||
default: true,
|
||||
widgetType: Switch
|
||||
},
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@ dashboard: true
|
||||
|
||||
# Enable or disable automatic updates for blacklists.
|
||||
# If enabled, the server will check for updates to blacklists daily at midnight.
|
||||
scheduledBlacklistUpdates: false
|
||||
scheduledBlacklistUpdates: true
|
||||
|
||||
# Number of days to retain statistics and query logs.
|
||||
# Lower values save disk space but provide less historical data.
|
||||
|
||||
Reference in New Issue
Block a user