Skip to content
Snippets Groups Projects
Verified Commit 2cea6cd9 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: improve redis support

parent b0ec3e10
No related branches found
No related tags found
No related merge requests found
Pipeline #2792 passed
...@@ -23,8 +23,8 @@ data: ...@@ -23,8 +23,8 @@ data:
PASSWORD_SCHEME: "{{ .Values.config.passwordScheme }}" PASSWORD_SCHEME: "{{ .Values.config.passwordScheme }}"
POD_ADDRESS_RANGE: "{{ .Values.config.realIpFrom }}" POD_ADDRESS_RANGE: "{{ .Values.config.realIpFrom }}"
POSTMASTER: "{{ .Values.config.postmaster }}" POSTMASTER: "{{ .Values.config.postmaster }}"
QUOTA_STORAGE_URL: "redis://{{ .Values.redis.host }}/1" QUOTA_STORAGE_URL: "redis://{{ .Values.redis.host }}/{{ .Values.redis.databases.quota }}"
RATELIMIT_STORAGE_URL: "redis://{{ .Values.redis.host }}/2" RATELIMIT_STORAGE_URL: "redis://{{ .Values.redis.host }}/{{ .Values.redis.databases.ratelimit }}"
REAL_IP_FROM: "{{ .Values.config.realIpFrom }}" REAL_IP_FROM: "{{ .Values.config.realIpFrom }}"
REAL_IP_HEADER: "{{ .Values.config.realIpHeader }}" REAL_IP_HEADER: "{{ .Values.config.realIpHeader }}"
RECIPIENT_DELIMITER: "{{ .Values.config.recipientDelimiter }}" RECIPIENT_DELIMITER: "{{ .Values.config.recipientDelimiter }}"
......
...@@ -44,6 +44,9 @@ database: ...@@ -44,6 +44,9 @@ database:
redis: redis:
host: "external-redis-hostname" host: "external-redis-hostname"
databases:
quota: 1
ratelimit: 2
certificate: certificate:
issuer: "letsencrypt" issuer: "letsencrypt"
......
...@@ -57,7 +57,7 @@ spec: ...@@ -57,7 +57,7 @@ spec:
- "--http-address=0.0.0.0:4180" - "--http-address=0.0.0.0:4180"
- "--provider=oidc" - "--provider=oidc"
{{ if .Values.redis.enabled }} {{ if .Values.redis.enabled }}
- "--redis-connection-url={{ .Values.redis.url }}" - "--redis-connection-url=redis://{{ .Values.redis.host }}/{{ .Values.redis.database }}"
{{ if .Values.redis.password ne "" }} {{ if .Values.redis.password ne "" }}
- "--redis-password={{ .Values.redis.password }}" - "--redis-password={{ .Values.redis.password }}"
{{ end }} {{ end }}
......
...@@ -22,8 +22,9 @@ cookieSecret: "" ...@@ -22,8 +22,9 @@ cookieSecret: ""
redis: redis:
enabled: false enabled: false
url: "example.com" host: "example.com"
password: "" password: ""
database: 0
service: service:
type: ClusterIP type: ClusterIP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment