Skip to content

Commit

Permalink
Add Hcaptcha config in helm
Browse files Browse the repository at this point in the history
  • Loading branch information
thenav56 committed Nov 27, 2024
1 parent 30d0f0a commit f827afc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/templates/config/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ data:
# Misc
UPTIME_WORKER_HEARTBEAT: {{ .Values.env.UPTIME_WORKER_HEARTBEAT | quote }}
DEFAULT_FROM_EMAIL: {{ required "env.DEFAULT_FROM_EMAIL" .Values.env.DEFAULT_FROM_EMAIL | quote }}
EMAIL_USE_TLS: {{ required "env.EMAIL_USE_TLS" .Values.env.EMAIL_USE_TLS | quote }}
# Sentry
SENTRY_TRACES_SAMPLE_RATE: {{ required "env.SENTRY_TRACES_SAMPLE_RATE" .Values.env.SENTRY_TRACES_SAMPLE_RATE | quote }}
SENTRY_PROFILE_SAMPLE_RATE: {{ required "env.SENTRY_PROFILE_SAMPLE_RATE" .Values.env.SENTRY_PROFILE_SAMPLE_RATE | quote }}
3 changes: 3 additions & 0 deletions helm/templates/config/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ stringData:
EMAIL_PORT: {{ required "secrets.EMAIL_PORT" .Values.secrets.EMAIL_PORT | quote }}
EMAIL_HOST_USER: {{ required "secrets.EMAIL_HOST_USER" .Values.secrets.EMAIL_HOST_USER | quote }}
EMAIL_HOST_PASSWORD: {{ required "secrets.EMAIL_HOST_PASSWORD" .Values.secrets.EMAIL_HOST_PASSWORD | quote }}
# Hcaptcha
HCAPTCHA_SECRET: {{ required "secrets.HCAPTCHA_SECRET" .Values.secrets.HCAPTCHA_SECRET | quote }}
HCAPTCHA_SITEKEY: {{ required "secrets.HCAPTCHA_SITEKEY" .Values.secrets.HCAPTCHA_SITEKEY | quote }}
# Redis
{{- if .Values.redis.enabled }}
CELERY_BROKER_URL: "redis://{{ printf "%s-master" (include "common.names.fullname" .Subcharts.redis) }}:6379/0"
Expand Down
3 changes: 3 additions & 0 deletions helm/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ secrets:
EMAIL_HOST_PASSWORD: dummy
# Sentry
SENTRY_DSN: dummy.com/dummy-id
# Hcaptcha
HCAPTCHA_SITEKEY: "10000000-ffff-ffff-ffff-000000000001"
HCAPTCHA_SECRET: "0x0000000000000000000000000000000000000000"
4 changes: 4 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ env:
CORS_ALLOWED_ORIGIN_REGEXES:
# Misc
UPTIME_WORKER_HEARTBEAT:
EMAIL_USE_TLS: true
DEFAULT_FROM_EMAIL:
# Sentry
SENTRY_TRACES_SAMPLE_RATE: 0.2
Expand All @@ -111,6 +112,9 @@ secrets:
CELERY_BROKER_URL:
# - Cache
CACHE_REDIS_URL:
# Hcaptcha
HCAPTCHA_SITEKEY:
HCAPTCHA_SECRET:

# Azure configurations
azure:
Expand Down

0 comments on commit f827afc

Please sign in to comment.