Skip to content

Commit

Permalink
docs: update envs needed for pagefind
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker authored and fedhacks committed Dec 20, 2024
1 parent 5b97da3 commit 98ef056
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .env.server
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,11 @@ PDF2MD_URL="http://localhost:8081"
BATCH_CHUNK_LIMIT=120
CHAT_COMPLETION_TIMEOUT_SECS=10
YOUTUBE_API_KEY=""

SEARCH_COMPONENT_URL="http://localhost:8000"
PAGEFIND_CDN_BASE_URL="https://pagefind-testing-index.trieve.ai"
S3_ENDPOINT_PAGEFIND=https://pagefind-index-west.s3.us-west-1.amazonaws.com
S3_ACCESS_KEY_PAGEFIND=**************
S3_SECRET_KEY_PAGEFIND=****************************************
S3_BUCKET_PAGEFIND=pagefind-index-west
AWS_REGION_PAGEFIND=us-west-1
16 changes: 16 additions & 0 deletions helm/templates/backend-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ data:
{{- if .Values.config.s3.region }}
AWS_REGION: {{ .Values.config.s3.region }}
{{- end }}
{{- if .Values.config.pagefind_s3.endpoint }}
S3_ENDPOINT_PAGEFIND: {{ .Values.config.pagefind_s3.endpoint }}
{{- end }}
{{- if .Values.config.pagefind_s3.accessKey }}
S3_ACCESS_KEY_PAGEFIND: {{ .Values.config.pagefind_s3.accessKey }}
{{- end }}
{{- if .Values.config.pagefind_s3.secretKey }}
S3_SECRET_KEY_PAGEFIND: {{ .Values.config.pagefind_s3.secretKey }}
{{- end }}
{{- if .Values.config.pagefind_s3.bucket }}
S3_BUCKET_PAGEFIND: {{ .Values.config.pagefind_s3.bucket }}
{{- end }}
{{- if .Values.config.pagefind_s3.region }}
AWS_REGION_PAGEFIND: {{ .Values.config.pagefind_s3.region }}
{{- end }}
COOKIE_SECURE: {{ .Values.config.trieve.cookieSecure | quote }}
TIKA_URL: tika.default.svc.cluster.local
OPENAI_BASE_URL: {{ .Values.config.openai.baseUrl }}
Expand Down Expand Up @@ -90,3 +105,4 @@ data:
{{- if .Values.config.trieve.youtubeApiKey }}
YOUTUBE_API_KEY: {{ .Values.config.trieve.youtubeApiKey | quote }}
{{- end }}
PAGEFIND_CDN_BASE_URL: {{ .Values.config.trieve.pagefindCdnUrl }}
7 changes: 7 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ config:
dittofeedApiKey: ""
useSubtrace: false
youtubeApiKey: ""
pagefindCdnUrl: ""
oidc:
clientSecret: "YllmLDTy67MbsUBrUAWvQ7z9aMq0QcKx"
clientId: "trieve"
Expand All @@ -145,6 +146,12 @@ config:
secretKey: ""
bucket: ""
region: ""
pagefind_s3:
endpoint: ""
accessKey: ""
secretKey: ""
bucket: ""
region: ""
stripe:
secret: ""
webhookSecret: ""
Expand Down

0 comments on commit 98ef056

Please sign in to comment.