Skip to content

Commit

Permalink
add mail settings (#5)
Browse files Browse the repository at this point in the history
* add mail settings

* bump chart
  • Loading branch information
ellie authored Jun 24, 2024
1 parent f6707c1 commit fa1fb69
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/atuin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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.3.2
version: 0.4.0

# 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
16 changes: 16 additions & 0 deletions charts/atuin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@ spec:
- name: ATUIN_METRICS__PORT
value: "{{ .Values.atuin.metrics.port}}"
{{- end }}

{{- if .Values.atuin.mail.enabled }}
- name: ATUIN_MAIL__ENABLED
value: "true"

{{- if .Values.atuin.mail.postmark.token}}
- name: ATUIN_MAIL__POSTMARK__TOKEN
value: {{ .Values.atuin.mail.postmark.token }}
{{- end }}

- name: ATUIN_MAIL__VERIFICATION__FROM
value: "{{ .Values.atuin.mail.verification.from }}"

- name: ATUIN_MAIL__VERIFICATION__SUBJECT
value: "{{ .Values.atuin.mail.verification.subject }}"
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
8 changes: 8 additions & 0 deletions charts/atuin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ atuin:
host: "0.0.0.0"
port: 9001

mail:
enabled: false
postmark:
token: null
verification:
from: "Atuin"
subject: "Atuin Verification"

logLevel: info

# Enable registration
Expand Down

0 comments on commit fa1fb69

Please sign in to comment.