feat: Gitea | enable smtp mail

This commit is contained in:
2024-10-12 18:58:26 +05:00
parent db935d355c
commit 058666330a
2 changed files with 20 additions and 0 deletions

View File

@@ -128,3 +128,13 @@ metadata:
operator.1password.io/auto-restart: "true" operator.1password.io/auto-restart: "true"
spec: spec:
itemPath: "vaults/Lab/items/gitea-redis" itemPath: "vaults/Lab/items/gitea-redis"
---
apiVersion: onepassword.com/v1
kind: OnePasswordItem
metadata:
name: smtp-token
namespace: gitea-system
annotations:
operator.1password.io/auto-restart: "true"
spec:
itemPath: "vaults/Lab/items/smtp-token"

View File

@@ -58,6 +58,11 @@ gitea:
DISABLE_REGISTRATION: true DISABLE_REGISTRATION: true
oauth2_client: oauth2_client:
ENABLE_AUTO_REGISTRATION: true ENABLE_AUTO_REGISTRATION: true
mailer:
ENABLED: true
PROTOCOL: smtp+starttls
SMTP_ADDR: smtp.protonmail.ch
SMTP_PORT: 587
oauth: oauth:
- name: "authentik" - name: "authentik"
provider: "openidConnect" provider: "openidConnect"
@@ -76,6 +81,11 @@ gitea:
secretKeyRef: secretKeyRef:
name: gitea-redis name: gitea-redis
key: password key: password
- name: GITEA__MAILER__PASSWD
valueFrom:
secretKeyRef:
name: smtp-token
key: password
persistence: persistence:
enabled: true enabled: true
accessModes: accessModes: