Skip to content

Commit

Permalink
chore(frontend): add jwt-secret-app env (labring#4587)
Browse files Browse the repository at this point in the history
  • Loading branch information
xudaotutou authored and bxy4543 committed Mar 14, 2024
1 parent e44ceda commit 6c2a037
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 20 deletions.
45 changes: 25 additions & 20 deletions frontend/desktop/deploy/manifests/deploy.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -176,30 +176,35 @@ spec:
- name: GUIDE_ENABLED
value: "false"
- name: GLOBAL_DATABASE_URL
valueFrom:
secretKeyRef:
key: global_database_url
name: desktop-frontend-secret
valueFrom:
secretKeyRef:
key: global_database_url
name: desktop-frontend-secret
- name: REGION_DATABASE_URL
valueFrom:
secretKeyRef:
key: region_database_url
name: desktop-frontend-secret
valueFrom:
secretKeyRef:
key: region_database_url
name: desktop-frontend-secret
- name: BILLING_URI
valueFrom:
secretKeyRef:
key: billing_uri
name: desktop-frontend-secret
valueFrom:
secretKeyRef:
key: billing_uri
name: desktop-frontend-secret
- name: JWT_SECRET_REGION
valueFrom:
secretKeyRef:
key: jwt_secret_region
name: desktop-frontend-secret
valueFrom:
secretKeyRef:
key: jwt_secret_region
name: desktop-frontend-secret
- name: JWT_SECRET_APP
valueFrom:
secretKeyRef:
key: jwt_secret_app
name: desktop-frontend-secret
- name: REGION_UID
valueFrom:
secretKeyRef:
key: region_uid
name: desktop-frontend-secret
valueFrom:
secretKeyRef:
key: region_uid
name: desktop-frontend-secret
securityContext:
runAsNonRoot: true
runAsUser: 1001
Expand Down
3 changes: 3 additions & 0 deletions frontend/desktop/deploy/manifests/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ data:
# base64 encode account service url, required
billing_uri: "aHR0cDovL2FjY291bnQtc2VydmljZS5hY2NvdW50LXN5c3RlbS5zdmM6MjMzMw=="


# base64 encoded mongodb uri, required
mongodb_uri: ""
# base64 encoded cockroachdb uri for global, required
Expand All @@ -18,6 +19,8 @@ data:
jwt_secret: ""
# base64 encoded global jwt secret, required
jwt_secret_region: ""
# base64 encoded provider jwt secret, required
jwt_secret_app: ""

# base64 encoded current region , required
region_uid: "ZWQyNTdiNGQtNjgzMi00MzdhLTllMDYtZDY4M2U3ZWRiMzIw"
Expand Down

0 comments on commit 6c2a037

Please sign in to comment.