diff --git a/config/config.exs b/config/config.exs index c90ad32..3e187d0 100644 --- a/config/config.exs +++ b/config/config.exs @@ -54,8 +54,6 @@ config :aprsme, aprs_is_password: System.get_env("APRS_PASSCODE"), auto_migrate: true, env: config_env(), - # Packet retention period in days (default: 7 days) - packet_retention_days: String.to_integer(System.get_env("PACKET_RETENTION_DAYS", "7")), # GenStage packet processing configuration # Optimized for PostgreSQL with work_mem=16MB and synchronous_commit=off packet_pipeline: [ diff --git a/config/runtime.exs b/config/runtime.exs index 8cf04e9..db7611a 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -144,6 +144,8 @@ if config_env() == :prod do aprs_is_default_filter: System.get_env("APRS_FILTER"), aprs_is_login_id: System.get_env("APRS_CALLSIGN"), aprs_is_password: System.get_env("APRS_PASSWORD") || System.get_env("APRS_PASSCODE"), + # Packet retention period in days (default: 7 days) + packet_retention_days: String.to_integer(System.get_env("PACKET_RETENTION_DAYS") || "7"), env: :prod # Configure Hammer for production environment