Skip to content

Commit

Permalink
feat: strapi adding cloudflare support
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Sep 28, 2023
1 parent 876a3d3 commit c762524
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/strapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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.1.52
version: 0.1.53

# 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
6 changes: 6 additions & 0 deletions charts/strapi/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ data:
AWS_SECRET_ACCESS_KEY: {{ .Values.s3.accessSecret | b64enc | quote }}
AWS_ENDPOINT: {{ .Values.s3.endpoint | b64enc | quote }}
AWS_BUCKET: {{ .Values.s3.bucket | b64enc | quote }}
{{ end }}
{{ if .Values.r2.enabled }}
CF_ACCESS_KEY_ID: {{ .Values.r2.accesKeyId | b64enc | quote }}
CF_SECRET_ACCESS_KEY: {{ .Values.r2.accessSecret | b64enc | quote }}
CF_ENDPOINT: {{ .Values.r2.endpoint | b64enc | quote }}
CF_BUCKET: {{ .Values.r2.bucket | b64enc | quote }}
{{ end }}
8 changes: 8 additions & 0 deletions charts/strapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ s3:
endpoint: "s3.us-east-2.amazonaws.com"
bucket: "strapi"

# If you are using the cloudflare R2 plugin
r2:
enabled: true
accesKeyId: ""
accessSecret: ""
endpoint: ""
bucket: "strapi"

resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit c762524

Please sign in to comment.