fix: Read live view signing salt from env var
This commit is contained in:
parent
d86ce5eac2
commit
e4324ac3f3
2 changed files with 8 additions and 1 deletions
|
@ -11,6 +11,7 @@ use Mix.Config
|
|||
# before starting your production server.
|
||||
|
||||
secret_key_base = System.get_env("SECRET_KEY_BASE")
|
||||
signing_salt = System.get_env("LIVE_VIEW_SIGNING_SALT")
|
||||
|
||||
[
|
||||
{:admin, Legendary.Admin, false},
|
||||
|
@ -35,7 +36,7 @@ secret_key_base = System.get_env("SECRET_KEY_BASE")
|
|||
],
|
||||
secret_key_base: secret_key_base,
|
||||
pubsub_server: App.PubSub,
|
||||
live_view: [signing_salt: "g5ltUbnQ"],
|
||||
live_view: [signing_salt: signing_salt],
|
||||
server: start_server
|
||||
] ++ extra_opts
|
||||
end)
|
||||
|
|
|
@ -34,6 +34,12 @@ spec:
|
|||
secretKeyRef:
|
||||
name: legendary
|
||||
key: secret-key-base
|
||||
- name: SECRET_KEY_BASE
|
||||
- name: LIVE_VIEW_SIGNING_SALT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: legendary
|
||||
key: live-view-signing-salt
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
Loading…
Reference in a new issue