Commit 635f95bd authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Small fixes to ops scripts. [skip ci]

parent b6e67221
Pipeline #46051 skipped
......@@ -8,8 +8,6 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
data:
gunicorn.conf: |
secure_scheme_headers = {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
gunicorn.log.conf: |
[loggers]
keys=root, gunicorn.error, gunicorn.access
......@@ -54,6 +52,19 @@ data:
datefmt=%Y-%m-%d %H:%M:%S
class=logging.Formatter
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "nomad.fullname" . }}-api-gunicorn-config
labels:
app.kubernetes.io/name: {{ include "nomad.name" . }}-api-gunicorn-config
helm.sh/chart: {{ include "nomad.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
data:
gunicorn.conf: |
secure_scheme_headers = {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
---
apiVersion: apps/v1
kind: Deployment
metadata:
......
......@@ -24,7 +24,7 @@ data:
api_secret: "{{ .Values.api.secret }}"
admin_password: "{{ .Values.api.adminPassword }}"
disable_reset: {{ .Values.api.disableReset }}
https: {{ .Values.api.https }}
https: {{ .Values.api.https }}
rabbitmq:
host: "{{ .Release.Name }}-rabbitmq"
elastic:
......
......@@ -30,8 +30,7 @@ api:
https: true
## Number of gunicorn worker. Recommendation is 2xnum_cores+1
worker: 10
## The external port to connect to the api
port: 80
port: 8000
console_loglevel: INFO
logstash_loglevel: INFO
## Secret used as cryptographic seed
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment