Set APRS_HOST and APRS_PASSWORD env vars
Connect to 204.110.191.232 instead of the default dallas.aprs2.net. runtime.exs now reads APRS_HOST (over APRS_SERVER) and APRS_PASSWORD (over APRS_PASSCODE) so both naming conventions work.
This commit is contained in:
parent
15dd528e05
commit
87dc076220
2 changed files with 10 additions and 7 deletions
|
|
@ -139,12 +139,12 @@ if config_env() == :prod do
|
||||||
|
|
||||||
config :aprsme,
|
config :aprsme,
|
||||||
ecto_repos: [Aprsme.Repo],
|
ecto_repos: [Aprsme.Repo],
|
||||||
aprs_is_server: System.get_env("APRS_SERVER", "dallas.aprs2.net"),
|
aprs_is_server: System.get_env("APRS_HOST") || System.get_env("APRS_SERVER", "dallas.aprs2.net"),
|
||||||
# config :aprsme, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
|
# config :aprsme, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
|
||||||
aprs_is_port: String.to_integer(System.get_env("APRS_PORT") || "14580"),
|
aprs_is_port: String.to_integer(System.get_env("APRS_PORT") || "14580"),
|
||||||
aprs_is_default_filter: System.get_env("APRS_FILTER"),
|
aprs_is_default_filter: System.get_env("APRS_FILTER"),
|
||||||
aprs_is_login_id: System.get_env("APRS_CALLSIGN"),
|
aprs_is_login_id: System.get_env("APRS_CALLSIGN"),
|
||||||
aprs_is_password: System.get_env("APRS_PASSCODE"),
|
aprs_is_password: System.get_env("APRS_PASSWORD") || System.get_env("APRS_PASSCODE"),
|
||||||
env: :prod
|
env: :prod
|
||||||
|
|
||||||
# Configure Hammer for production environment
|
# Configure Hammer for production environment
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,12 @@ spec:
|
||||||
value: "4000"
|
value: "4000"
|
||||||
- name: APRS_PORT
|
- name: APRS_PORT
|
||||||
value: "10152"
|
value: "10152"
|
||||||
|
- name: APRS_HOST
|
||||||
|
value: "204.110.191.232"
|
||||||
- name: APRS_CALLSIGN
|
- name: APRS_CALLSIGN
|
||||||
value: "w5isp-1"
|
value: "w5isp-1"
|
||||||
|
- name: APRS_PASSWORD
|
||||||
|
value: "15748"
|
||||||
- name: RELEASE_COOKIE
|
- name: RELEASE_COOKIE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|
@ -66,11 +70,6 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: aprs-secrets
|
name: aprs-secrets
|
||||||
key: SECRET_KEY_BASE
|
key: SECRET_KEY_BASE
|
||||||
- name: APRS_PASSCODE
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: aprs-secrets
|
|
||||||
key: APRS_PASSCODE
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: aprs-db
|
name: aprs-db
|
||||||
|
|
@ -141,6 +140,10 @@ spec:
|
||||||
value: "w5isp-1"
|
value: "w5isp-1"
|
||||||
- name: APRS_PORT
|
- name: APRS_PORT
|
||||||
value: "10152"
|
value: "10152"
|
||||||
|
- name: APRS_HOST
|
||||||
|
value: "204.110.191.232"
|
||||||
|
- name: APRS_PASSWORD
|
||||||
|
value: "15748"
|
||||||
- name: RELEASE_COOKIE
|
- name: RELEASE_COOKIE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue