Skip to content

Commit

Permalink
adjust settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gofman8 committed Oct 18, 2023
1 parent dcbb7b2 commit cd36f90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
# ------------------------------------------------------------------------------
# Django Admin URL regex.
ADMIN_URL = env("DJANGO_ADMIN_URL", default="admin/")
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https")

# CELERY
# ------------------------------------------------------------------------------
Expand Down
11 changes: 8 additions & 3 deletions deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ spec:
env:
- name: WORKER_QUEUES
value: "contracts,tokens"
- name: RUN_MIGRATIONS
value: "1"
args: ["docker/web/celery/worker/run.sh"]
name: contracts-tokens-worker
resources: {}
Expand All @@ -76,6 +78,8 @@ spec:
env:
- name: WORKER_QUEUES
value: "notifications,webhooks"
- name: RUN_MIGRATIONS
value: "1"
args: ["docker/web/celery/worker/run.sh"]
name: notifications-webhooks-worker
resources: {}
Expand Down Expand Up @@ -115,11 +119,12 @@ spec:
- secretRef:
name: rootstock-transaction-service-secret
ports:
- containerPort: 80
- containerPort: 8000
resources: {}
volumeMounts:
- name: nginxconf
mountPath: /etc/nginx/templates
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- mountPath: /nginx
name: nginx-shared
restartPolicy: Always
Expand All @@ -144,6 +149,6 @@ spec:
app: rootstock-transaction-service
ports:
- port: 443
targetPort: 80
targetPort: 8000
type: LoadBalancer
---

0 comments on commit cd36f90

Please sign in to comment.