Skip to content

Commit

Permalink
[stack-auth] intgrate svix subchart
Browse files Browse the repository at this point in the history
  • Loading branch information
jshimko committed Sep 23, 2024
1 parent 152152d commit 8d94633
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/stack-auth/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 15.5.32
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 20.1.4
digest: sha256:e73390e7b0d2d0a99438d4ba574b7143115462fb301fcf8c3b9a0fe7e90320d9
generated: "2024-09-23T06:48:54.19089-04:00"
- name: svix
repository: file://../svix
version: 0.1.0
digest: sha256:f24a2ed4528b2b76abd4f74966497dcee3262eb3dfb5155fafcbaf083eaea282
generated: "2024-09-23T16:13:48.458748-04:00"
4 changes: 4 additions & 0 deletions charts/stack-auth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ dependencies:
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled

- name: svix
version: ^0.1.0
repository: file://../svix
condition: svix.enabled
51 changes: 51 additions & 0 deletions charts/stack-auth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,54 @@ extraTemplates:
# namespace: my-namespace
# data:
# key: value

# svix chart
svix:
enabled: true

fullnameOverride: svix

svix:
image:
repository: svix/svix-server
tag: latest
pullPolicy: Always

# automatically create a secret for the Svix API key so it can be mounted by the Stack backend
# (see envFrom config in backend values above)
createJwtSecret:
enabled: true
secretName: svix-jwt-secret
secretKey: STACK_SVIX_API_KEY

# https://github.com/svix/svix-webhooks/blob/main/server/svix-server/config.default.toml
env:
- name: WAIT_FOR
value: "true"
- name: SVIX_JWT_SECRET
value: "change me!"
- name: SVIX_CACHE_TYPE
value: "redis"
- name: SVIX_QUEUE_TYPE
value: "redis"
- name: SVIX_ENVIRONMENT
value: "prod"
- name: SVIX_LOG_LEVEL
value: "trace"
- name: SVIX_WHITELABEL_HEADERS
value: "true"
- name: SVIX_REDIS_POOL_MAX_SIZE
value: "100"

service:
type: LoadBalancer

postgresql:
enabled: true
architecture: standalone
fullnameOverride: svix-postgresql

redis:
enabled: true
architecture: standalone
fullnameOverride: svix-redis

0 comments on commit 8d94633

Please sign in to comment.