Skip to content

Commit

Permalink
Merge pull request #42 from ocf/kian/fix-env
Browse files Browse the repository at this point in the history
Fix environment variables
  • Loading branch information
Kalissaac authored Dec 18, 2022
2 parents f61ba4e + 007e2a3 commit 948309a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions kubernetes/ocfapi.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
value: "4"
- name: VERSION
value: "<%= version %>"
- name: FORWARDED_ALLOW_IPS
value: "*"
envFrom:
- secretRef:
name: api-config
Expand Down Expand Up @@ -61,3 +63,29 @@ spec:
- backend:
serviceName: ocfapi-service
servicePort: 80
---
apiVersion: v1
kind: Secret
metadata:
name: api-config
type: Opaque
stringData:
calnet_jwt_secret: <%= calnet_jwt_secret %>
celery_backend: <%= celery_backend %>
celery_broker: <%= celery_broker %>
github_webhooksecret: <%= github_webhooksecret %>
ocfgitdeployments_db: <%= ocfgitdeployments_db %>
ocfgitdeployments_password: <%= ocfgitdeployments_password %>
ocfgitdeployments_user: <%= ocfgitdeployments_user %>
ocfmail_db: <%= ocfmail_db %>
ocfmail_password: <%= ocfmail_password %>
ocfmail_user: <%= ocfmail_user %>
ocfprinting_db: <%= ocfprinting_db %>
ocfprinting_password: <%= ocfprinting_password %>
ocfprinting_user: <%= ocfprinting_user %>
ocfstats_db: <%= ocfstats_db %>
ocfstats_password: <%= ocfstats_password %>
ocfstats_user: <%= ocfstats_user %>
redis_host: <%= redis_host %>
redis_password: <%= redis_password %>
redis_port: <%= redis_port %>

0 comments on commit 948309a

Please sign in to comment.