fix: add required WEBAPP_URL/NEXTAUTH_URL config and improve helm chart (#7107)

This commit is contained in:
Bhagya Amarasinghe
2026-01-14 23:56:40 +05:30
committed by GitHub
parent 95831f7c7f
commit 11c0cb4b61
5 changed files with 42 additions and 15 deletions

View File

@@ -7,6 +7,11 @@ type: application
# Helm chart Version
version: 0.0.0-dev
# This is the version number of the application being deployed.
appVersion: "3.7.0"
icon: https://formbricks.com/favicon.ico
keywords:
- formbricks
- postgresql

View File

@@ -84,13 +84,18 @@ Redis Access:
---
Environment Variables:
The following environment variables have been automatically generated:
The following environment variables have been configured:
- `NEXTAUTH_SECRET`: A random 32-character string
- `ENCRYPTION_KEY`: A random 32-character string
- `CRON_SECRET`: A random 32-character string
- 'EMAIL_VERIFICATION_DISABLED': 1 # By Default email verification is disabled, configure SMTP settings to enable(https://formbricks.com/docs/self-hosting/configuration/smtp)
- 'PASSWORD_RESET_DISABLED': 1 # By Default password reset is disabled, configure SMTP settings to enable(https://formbricks.com/docs/self-hosting/configuration/smtp)
- `WEBAPP_URL`: {{ .Values.formbricks.webappUrl }}
- `NEXTAUTH_URL`: {{ .Values.formbricks.webappUrl }}
{{- if .Values.formbricks.publicUrl }}
- `PUBLIC_URL`: {{ .Values.formbricks.publicUrl }}
{{- end }}
- `NEXTAUTH_SECRET`: A random 32-character string (auto-generated)
- `ENCRYPTION_KEY`: A random 32-character string (auto-generated)
- `CRON_SECRET`: A random 32-character string (auto-generated)
- `EMAIL_VERIFICATION_DISABLED`: 1 # By Default email verification is disabled, configure SMTP settings to enable(https://formbricks.com/docs/self-hosting/configuration/smtp)
- `PASSWORD_RESET_DISABLED`: 1 # By Default password reset is disabled, configure SMTP settings to enable(https://formbricks.com/docs/self-hosting/configuration/smtp)
Retrieve them using:
```sh

View File

@@ -3,6 +3,7 @@
{{- $postgresAdminPassword := include "formbricks.postgresAdminPassword" . }}
{{- $postgresUserPassword := include "formbricks.postgresUserPassword" . }}
{{- $redisPassword := include "formbricks.redisPassword" . }}
{{- $webappUrl := required "formbricks.webappUrl is required. Set it to your Formbricks instance URL (e.g., https://formbricks.example.com)" .Values.formbricks.webappUrl }}
---
apiVersion: v1
kind: Secret
@@ -11,6 +12,12 @@ metadata:
labels:
{{- include "formbricks.labels" . | nindent 4 }}
data:
# Formbricks application URLs
WEBAPP_URL: {{ $webappUrl | b64enc }}
NEXTAUTH_URL: {{ $webappUrl | b64enc }}
{{- if .Values.formbricks.publicUrl }}
PUBLIC_URL: {{ .Values.formbricks.publicUrl | b64enc }}
{{- end }}
{{- if .Values.redis.enabled }}
REDIS_URL: {{ printf "redis://:%s@formbricks-redis-master:6379" $redisPassword | b64enc }}
{{- else }}
@@ -21,7 +28,7 @@ data:
{{- else }}
DATABASE_URL: {{ .Values.postgresql.externalDatabaseUrl | b64enc }}
{{- end }}
CRON_SECRET: {{ include "formbricks.cronSecret" . | b64enc }}
CRON_SECRET: {{ include "formbricks.cronSecret" . | b64enc }}
ENCRYPTION_KEY: {{ include "formbricks.encryptionKey" . | b64enc }}
NEXTAUTH_SECRET: {{ include "formbricks.nextAuthSecret" . | b64enc }}
{{- if and (.Values.enterprise.licenseKey) (ne .Values.enterprise.licenseKey "") }}

View File

@@ -7,15 +7,13 @@ metadata:
namespace: {{ include "formbricks.namespace" . }}
labels:
{{- include "formbricks.labels" $ | nindent 4 }}
{{- if .Values.serviceMonitor.additionalLabels }}
{{ toYaml .Values.serviceMonitor.additionalLabels | indent 4 }}
{{- end }}
{{- if .Values.serviceMonitor.annotations }}
{{- if .Values.serviceMonitor.additionalLabels }}
{{- toYaml .Values.serviceMonitor.additionalLabels | nindent 4 }}
{{- end }}
{{- if .Values.serviceMonitor.annotations }}
annotations:
{{- end }}
{{- if or .Values.serviceMonitor.annotations }}
{{ toYaml .Values.serviceMonitor.annotations | indent 4 }}
{{- end }}
{{- toYaml .Values.serviceMonitor.annotations | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:

View File

@@ -10,6 +10,17 @@ componentOverride: ""
# Defaults to the chart name if not set.
partOfOverride: ""
##########################################################
# Formbricks Configuration
##########################################################
formbricks:
# REQUIRED: Base URL of the site (e.g., https://formbricks.example.com)
# This is used for WEBAPP_URL and NEXTAUTH_URL
webappUrl: ""
# Optional: Public URL for surveys (defaults to webappUrl if not set)
publicUrl: ""
##########################################################
# Enterprise Configuration
##########################################################
@@ -76,6 +87,7 @@ deployment:
# Application container image
image:
repository: "ghcr.io/formbricks/formbricks"
tag: "" # Defaults to appVersion if not set
digest: "" # If set, digest takes precedence over the tag
pullPolicy: IfNotPresent