Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkfella91 committed Jan 8, 2025
1 parent 2e4096d commit 4067300
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
10 changes: 8 additions & 2 deletions kubernetes/main/apps/media/sonarr/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ spec:
COOKIE_SECRET: "{{ .COOKIE_SECRET }}"
CLIENT_SECRET: "{{ .CLIENT_SECRET}}"
CLIENT_ID: "{{ .CLIENT_ID }}"
REDIS_PASSWORD: "{{ .REDIS_PASSWORD }}"
DRAGONFLY_PASSWORD: "{{ .DRAGONFLY__PASSWORD }}"
dragonfly-ca.crt: '{{ index . "dragonfly-ca.crt" }}'
dataFrom:
- extract:
key: api-keys
Expand All @@ -40,4 +41,9 @@ spec:
- extract:
key: secrets/oauth2/sonarr
- extract:
key: secrets/redis
key: secrets/dragonfly
data:
- secretKey: dragonfly-ca.crt
remoteRef:
key: secrets/certificates/dragonfly
property: ca.crt
13 changes: 11 additions & 2 deletions kubernetes/main/apps/media/sonarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ spec:
valueFrom:
secretKeyRef:
name: *secret
key: REDIS_PASSWORD
key: DRAGONFLY_PASSWORD
OAUTH2_PROXY_SESSION_STORE_TYPE: redis
OAUTH2_PROXY_REDIS_CONNECTION_URL: redis://redis-master.database.svc.cluster.local:6379
securityContext: *securityContext

app:
Expand Down Expand Up @@ -246,3 +245,13 @@ spec:
- path: /etc/oauth2-proxy.cfg
subPath: oauth2-proxy.cfg
readOnly: true

dragonfly-ca-cert:
type: secret
name: *secret
advancedMounts:
sonarr:
oauth2-proxy:
- path: /etc/ssl/certs/dragonfly-ca.crt
subPath: dragonfly-ca.crt
readOnly: true
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ cookie_csrf_per_request = true
cookie_csrf_expire = "5m"
ping_path = "/oauth2/ping"
cookie_samesite = "strict"
redis_connection_url = "rediss://dragonfly-cluster.database.svc.cluster.local:6379"
redis_insecure_skip_tls_verify = false

0 comments on commit 4067300

Please sign in to comment.