Merge pull request 'Fix packet retention config to read env var at runtime' (#1) from fix/packet-retention-runtime-config into main
Reviewed-on: #1
This commit is contained in:
commit
3b33a319f2
2 changed files with 2 additions and 2 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue