feat: add mailer support and credentials for gitea
This commit is contained in:
@@ -2,3 +2,6 @@ GITEA_POSTGRES_USER=
|
|||||||
GITEA_POSTGRES_PASSWORD=
|
GITEA_POSTGRES_PASSWORD=
|
||||||
GITEA_POSTGRES_DB=gitea
|
GITEA_POSTGRES_DB=gitea
|
||||||
BASIC-RUNNER_TOKEN=
|
BASIC-RUNNER_TOKEN=
|
||||||
|
GITEA_SMTP_PASS=
|
||||||
|
MAILER_ADDR=
|
||||||
|
SERVICE_EMAIL=email.used.by.services@domain.tld
|
||||||
@@ -15,6 +15,15 @@ services:
|
|||||||
- GITEA__server__ROOT_URL=https://gitea.forust.xyz
|
- GITEA__server__ROOT_URL=https://gitea.forust.xyz
|
||||||
- GITEA__server__SSH_DOMAIN=gitssh.forust.xyz
|
- GITEA__server__SSH_DOMAIN=gitssh.forust.xyz
|
||||||
- GITEA__server__SSH_PORT=2221
|
- GITEA__server__SSH_PORT=2221
|
||||||
|
# Mailer
|
||||||
|
- GITEA__mailer__ENABLED=true
|
||||||
|
- GITEA__mailer__FROM=${SERVICE_EMAIL}
|
||||||
|
- GITEA__mailer__SMTP_ADDR=${MAILER_ADDR}:465
|
||||||
|
- GITEA__mailer__USER=${SERVICE_EMAIL}
|
||||||
|
- GITEA__mailer__PASSWD=${GITEA_SMTP_PASS}
|
||||||
|
- GITEA__mailer__PROTOCOL=SMTP
|
||||||
|
- GITEA__service__REGISTER_EMAIL_CONFIRM=true
|
||||||
|
- GITEA__service__ENABLE_NOTIFY_MAIL=true
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- gitea-db
|
- gitea-db
|
||||||
|
|||||||
Reference in New Issue
Block a user