Skip to content

Commit

Permalink
add tls to gitea/smtpd
Browse files Browse the repository at this point in the history
  • Loading branch information
hcf coder committed Jan 15, 2024
1 parent 7375771 commit 4836b95
Show file tree
Hide file tree
Showing 20 changed files with 145 additions and 96 deletions.
2 changes: 1 addition & 1 deletion charts/gitea/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.9.0
version: 0.9.1

# 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
30 changes: 30 additions & 0 deletions charts/gitea/templates/deployment-smtpd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ spec:
spec:
containers:
- env:
{{- if .Values.smtpd.tls.secret }}
- name: POSTFIX_smtp_use_tls
value: "yes"
- name: POSTFIX_smtp_tls_cert_file
value: "/etc/cert/tls.crt"
- name: POSTFIX_smtp_tls_key_file
value: "/etc/cert/tls.key"
- name: POSTFIX_smtp_tls_loglevel
value: "1"
{{ end }}
- name: ALLOWED_SENDER_DOMAINS
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -75,12 +85,32 @@ spec:
- name: RELAYHOST
value: {{ .Values.smtpd.relayHost | quote }}
{{ end }}
{{ if .Values.smtpd.relayHostUser }}
- name: RELAYHOST_USERNAME
value: {{ .Values.smtpd.relayHostUser | quote }}
{{ end }}
{{ if .Values.smtpd.relayHostPassword }}
- name: RELAYHOST_PASSWORD
value: {{ .Values.smtpd.relayHostPassword | quote }}
{{ end }}
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ .Values.kubernetesClusterDomain }}
image: {{ .Values.smtpd.image.repository }}:{{ .Values.smtpd.image.tag | default .Chart.AppVersion }}
name: smtpd
ports:
- containerPort: 25
resources: {{- toYaml .Values.smtpd.resources | nindent 10 }}
{{- if .Values.smtpd.tls.secret }}
volumeMounts:
- mountPath: "/etc/cert"
name: crt-key
readOnly: true
{{- end}}
{{- if .Values.smtpd.tls.secret }}
volumes:
- name: crt-key
secret:
secretName: {{ .Values.smtpd.tls.secret }}
{{ end }}
imagePullSecrets: {{ .Values.imagePullSecrets | default list | toJson }}
restartPolicy: Always
Binary file modified repo/cert-manager-webhook-oci-1.3.1.tgz
Binary file not shown.
Binary file modified repo/crontab-ui-1.0.0.tgz
Binary file not shown.
Binary file modified repo/dolidock-0.9.13.tgz
Binary file not shown.
Binary file modified repo/easyappointments-0.2.0.tgz
Binary file not shown.
Binary file added repo/gitea-0.9.1.tgz
Binary file not shown.
Binary file modified repo/hcf-coder-0.2.1.tgz
Binary file not shown.
Binary file modified repo/hcfmailer-1.0.0.tgz
Binary file not shown.
Binary file modified repo/hcfmailerplus-0.2.0.tgz
Binary file not shown.
Binary file modified repo/hcfschedule-0.1.0.tgz
Binary file not shown.
Binary file modified repo/helm-dashboard-0.1.9.tgz
Binary file not shown.
6 changes: 3 additions & 3 deletions repo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ <h2>Charts</h2>
<li>
<p>
gitea
(<a href="https://helm-repo.highcanfly.club/gitea-0.9.0.tgz" title="https://helm-repo.highcanfly.club/gitea-0.9.0.tgz">
0.9.0
(<a href="https://helm-repo.highcanfly.club/gitea-0.9.1.tgz" title="https://helm-repo.highcanfly.club/gitea-0.9.1.tgz">
0.9.1
@
1.21.3
</a>)
Expand Down Expand Up @@ -263,6 +263,6 @@ <h2>Charts</h2>

</ul>
</section>
<time datetime="2024-01-14T12:06:01" pubdate id="generated">Sun Jan 14 2024 12:06:01PM UTC&#43;00:00</time>
<time datetime="2024-01-15T06:34:46" pubdate id="generated">Mon Jan 15 2024 06:34:46AM UTC&#43;00:00</time>
</body>
</html>
Loading

0 comments on commit 4836b95

Please sign in to comment.