Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore(server): enable r2 in doc service (#10865)

darkskygit17d4fef721e3
diff --git a/.github/helm/affine/charts/doc/templates/deployment.yaml b/.github/helm/affine/charts/doc/templates/deployment.yaml
index 64d5a8d09f..82f3c57283 100644
--- a/.github/helm/affine/charts/doc/templates/deployment.yaml
+++ b/.github/helm/affine/charts/doc/templates/deployment.yaml
@@ -75,6 +75,23 @@ spec:
value: "{{ .Values.app.host }}"
- name: AFFINE_SERVER_HTTPS
value: "{{ .Values.app.https }}"
+ {{ if .Values.global.objectStorage.r2.enabled }}
+ - name: R2_OBJECT_STORAGE_ACCOUNT_ID
+ valueFrom:
+ secretKeyRef:
+ name: "{{ .Values.global.objectStorage.r2.secretName }}"
+ key: accountId
+ - name: R2_OBJECT_STORAGE_ACCESS_KEY_ID
+ valueFrom:
+ secretKeyRef:
+ name: "{{ .Values.global.objectStorage.r2.secretName }}"
+ key: accessKeyId
+ - name: R2_OBJECT_STORAGE_SECRET_ACCESS_KEY
+ valueFrom:
+ secretKeyRef:
+ name: "{{ .Values.global.objectStorage.r2.secretName }}"
+ key: secretAccessKey
+ {{ end }}
{{ if .Values.app.copilot.enabled }}
- name: COPILOT_OPENAI_API_KEY
valueFrom: