diff --git a/charts/matrix-registration/templates/config.yaml b/charts/matrix-registration/templates/config.yaml index 86b86e8..e645cf9 100644 --- a/charts/matrix-registration/templates/config.yaml +++ b/charts/matrix-registration/templates/config.yaml @@ -11,7 +11,7 @@ data: base_url: {{ .Values.serverBaseUrl }} client_redirect: 'https://app.element.io/#/login' client_logo: 'static/images/element-logo.png' # use '{cwd}' for current working directory - db: 'sqlite:///data/db.sqlite3' + db: 'sqlite:////data/db.sqlite3' host: '0.0.0.0' port: 5000 rate_limit: ["100 per day", "10 per minute"] diff --git a/charts/matrix-registration/templates/deployment.yaml b/charts/matrix-registration/templates/deployment.yaml index c43feb2..9f2d43e 100644 --- a/charts/matrix-registration/templates/deployment.yaml +++ b/charts/matrix-registration/templates/deployment.yaml @@ -26,14 +26,16 @@ spec: - image: zeratax/matrix-registration:{{ printf "v%s" .Chart.AppVersion }} imagePullPolicy: IfNotPresent name: matrix-registration - args: ["serve"] + args: ["serve", "--config-path", "/config/config.yaml"] ports: - containerPort: 5000 name: web protocol: TCP volumeMounts: - - mountPath: /data/config + - mountPath: /config name: matrix-registration + - mountPath: /data + name: data restartPolicy: Always volumes: - name: matrix-registration