Compare commits
3 Commits
820d2d8c51
...
5165759558
Author | SHA1 | Date | |
---|---|---|---|
5165759558
|
|||
10f73b96ec
|
|||
5097e551e2
|
@ -22,12 +22,18 @@ spec:
|
|||||||
- name: sinatra-web
|
- name: sinatra-web
|
||||||
containerPort: 4567
|
containerPort: 4567
|
||||||
env:
|
env:
|
||||||
- name: SESSION_SECRET
|
- name: KUBERNAUT_SESSION_SECRET
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: kubernaut-session-secret
|
name: kubernaut
|
||||||
key: session_secret
|
key: session_secret
|
||||||
optional: true
|
optional: true
|
||||||
|
- name: KUBERNAUT_JWT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: kubernaut
|
||||||
|
key: jwt_secret
|
||||||
|
optional: true
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: kubernaut-configmap
|
name: kubernaut-configmap
|
||||||
|
@ -12,7 +12,7 @@ class Config
|
|||||||
@prefix = prefix
|
@prefix = prefix
|
||||||
@cat = cat
|
@cat = cat
|
||||||
|
|
||||||
session_secret ||= ENV.fetch "SESSION_SECRET" do
|
session_secret ||= fetch_env "SESSION_SECRET" do
|
||||||
SecureRandom.hex SESSION_SECRET_HEX_LENGTH
|
SecureRandom.hex SESSION_SECRET_HEX_LENGTH
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user