fix: set scheduled blacklist updates to true by default

This commit is contained in:
pommee
2025-09-27 14:36:55 +02:00
parent 487c0ce5ba
commit 4cecb94266
3 changed files with 4 additions and 4 deletions

View File

@@ -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}

View File

@@ -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
},
{

View File

@@ -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.