Skip to content

Commit

Permalink
default to internal service:port for PROMPT_API_URL, add LANGTAIL_LIC…
Browse files Browse the repository at this point in the history
…ENSE_KEY
  • Loading branch information
rychlis committed Nov 19, 2024
1 parent a3b9aab commit f3e9a4a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Below is a list of all available configuration parameters that can be set during

| Parameter | Description | Default Value |
|--------------------------------|--------------------------------------------------|--------------------------------------------------|
| `LANGTAIL_LICENSE_KEY` | Langtail license key - contact us at [email protected] | `your-license-key` |
| `SMTP_URL` | SMTP connection URL | `smtp://user:[email protected]:587` |
| `EMAIL_FROM` | Default email address | `[email protected]` |
| `EMAIL_VERIFICATION_SECRET` | Secret for email verification **Must be generated** | `default-email-verification-secret` |
Expand All @@ -75,6 +76,7 @@ Below is a list of all available configuration parameters that can be set during
| `JWT_SIGNING_KEY` | JWT signing key. **Must be generated**. | `default-jwt-signing-key` |
| `AUTH_URL` | URL for the authentication service | `https://default-auth-url.com` |
| `AUTH_SECRET` | Authentication secret. **Must be generated**. | `default-auth-secret` |
| `PROMPT_API_URL` | URL for the prompt API service used internally by Langtail backend | `http://langtail:3000/api/prompt-api` |
| `DATABASE_URL` | Database connection URL | `mysql://user:password@localhost:5432/database` |
| `MIGRATIONS_DATABASE_URL` | Database connection URL for migrations. Can be the same as DATABASE_URL, but in case you want to use a different user to apply migrations, there's a way | `mysql://user:password@localhost:5432/database` |
| `PRISMA_FIELD_ENCRYPTION_KEY` | Encryption key for Prisma fields. **Must be generated**. | `default-prisma-field-encryption-key` |
Expand Down
2 changes: 1 addition & 1 deletion charts/langtail/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.1
version: 0.2.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions charts/langtail/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: {{ include "langtail.fullname" . }}-secret
type: Opaque
data:
LANGTAIL_LICENSE_KEY: {{ .Values.LANGTAIL_LICENSE_KEY | toString | b64enc | quote }}
DATABASE_URL: {{ .Values.DATABASE_URL | toString | b64enc | quote }}
PRISMA_FIELD_ENCRYPTION_KEY: {{ .Values.PRISMA_FIELD_ENCRYPTION_KEY | toString | b64enc | quote }}
JWT_PRIVATE: {{ .Values.JWT_PRIVATE | toString | b64enc | quote }}
Expand All @@ -25,4 +26,5 @@ metadata:
"helm.sh/hook-weight": "-10"
type: Opaque
data:
LANGTAIL_LICENSE_KEY: {{ .Values.LANGTAIL_LICENSE_KEY | toString | b64enc | quote }}
DATABASE_URL: {{ .Values.MIGRATIONS_DATABASE_URL | toString | b64enc | quote }}
3 changes: 2 additions & 1 deletion charts/langtail/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,13 @@ extraManifests: []
SKIP_ENV_VALIDATION: "false"
SENTRY_ENABLED: "true"
AUTH_URL: "https://default-auth-url.com"
PROMPT_API_URL: "http://your-domain.com/api/prompt-api"
PROMPT_API_URL: "http://langtail:3000/api/prompt-api" # Using the default service name and port
GITHUB_ID: "default-github-id"
GOOGLE_ID: "default-google-id"
EMAIL_FROM: "[email protected]"

# Secret ENVs
LANGTAIL_LICENSE_KEY: "your-license-key"
DATABASE_URL: "mysql://user:password@localhost:3306/database"
MIGRATIONS_DATABASE_URL: "mysql://user:password@localhost:3306/database"
PRISMA_FIELD_ENCRYPTION_KEY: "default-prisma-field-encryption-key"
Expand Down

0 comments on commit f3e9a4a

Please sign in to comment.