fix: forgejo mailer config

This commit is contained in:
Aravinth Manivannan 2024-01-10 20:43:11 +05:30
parent 038a41648a
commit 782cb765c5
Signed by: realaravinth
GPG key ID: F8F50389936984FF
3 changed files with 26 additions and 24 deletions

1
.env
View file

@ -1 +1,2 @@
export INSTANCE_URL=http://localhost:3001 export INSTANCE_URL=http://localhost:3001
export MAILDEV_URL=http://localhost:1080

View file

@ -3,11 +3,12 @@ steps:
image: realaravinth/forgejo-frontend-integration-base # ./Dockerfile image: realaravinth/forgejo-frontend-integration-base # ./Dockerfile
environment: environment:
- INSTANCE_URL=http://forgejo - INSTANCE_URL=http://forgejo
- MAILDEV_URL=http://maildev:1080
commands: commands:
- npm ci - npm ci
- npx playwright install --with-deps - npx playwright install --with-deps
- npx playwright test --project=firefox --grep @setup - npx playwright test --project=firefox --grep @setup
- npx playwright test --project=firefox --grep-invert @setup - npx playwright test --grep-invert @setup
services: services:
forgejo: forgejo:
@ -17,17 +18,17 @@ services:
- FORGEJO__federation__ENABLED=true - FORGEJO__federation__ENABLED=true
- FORGEJO__server__ROOT_URL=http://forgejo - FORGEJO__server__ROOT_URL=http://forgejo
- FORGEJO__server__HTTP_PORT=80 - FORGEJO__server__HTTP_PORT=80
- FORGEJO__service_ENABLE_NOTIFY_MAIL=true - FORGEJO__service__ENABLE_NOTIFY_MAIL=true
- FORGEJO__service_REGISTER_EMAIL_CONFIRM=true - FORGEJO__service__REGISTER_EMAIL_CONFIRM=true
- FORGEJO__admin_DEFAULT_EMAIL_NOTIFICATIONS=enabled - FORGEJO__admin__DEFAULT_EMAIL_NOTIFICATIONS=enabled
- FORGEJO__admin_SEND_NOTIFICATION_EMAIL_ON_NEW_USER=true - FORGEJO__admin__SEND_NOTIFICATION_EMAIL_ON_NEW_USER=true
- FORGEJO__mailer_ENABLED=true - FORGEJO__mailer__ENABLED=true
- FORGEJO__mailer_PROTOCOL=smtp - FORGEJO__mailer__PROTOCOL=smtp
- FORGEJO__mailer_SMTP_ADDR=maildev - FORGEJO__mailer__SMTP_ADDR=maildev
- FORGEJO__mailer_SMTP_PORT=10025 - FORGEJO__mailer__SMTP_PORT=10025
- FORGEJO__mailer_FROM=forgejo@ci.local - FORGEJO__mailer__FROM=forgejo@ci.local
- FORGEJO__mailer_USER=admin - FORGEJO__mailer__USER=admin
- FORGEJO__mailer_PASSWORD=password - FORGEJO__mailer__PASSWORD=password
maildev: maildev:
image: maildev/maildev:latest image: maildev/maildev:latest

View file

@ -7,19 +7,19 @@ services:
environment: environment:
FORGEJO__security__INSTALL_LOCK: true FORGEJO__security__INSTALL_LOCK: true
FORGEJO__federation__ENABLED: true FORGEJO__federation__ENABLED: true
FORGEJO__server__ROOT_URL: http://localhost FORGEJO__server__ROOT_URL: http://localhost:3001
FORGEJO__server__HTTP_PORT: 3001 FORGEJO__server__HTTP_PORT: 3001
FORGEJO__service_ENABLE_NOTIFY_MAIL: true FORGEJO__service__ENABLE_NOTIFY_MAIL: true
FORGEJO__service_REGISTER_EMAIL_CONFIRM: true FORGEJO__service__REGISTER_EMAIL_CONFIRM: true
FORGEJO__admin_DEFAULT_EMAIL_NOTIFICATIONS: enabled FORGEJO__admin__DEFAULT_EMAIL_NOTIFICATIONS: enabled
FORGEJO__admin_SEND_NOTIFICATION_EMAIL_ON_NEW_USER: true FORGEJO__admin__SEND_NOTIFICATION_EMAIL_ON_NEW_USER: true
FORGEJO__mailer_ENABLED: true FORGEJO__mailer__ENABLED: true
FORGEJO__mailer_PROTOCOL: smtp FORGEJO__mailer__PROTOCOL: "smtp"
FORGEJO__mailer_SMTP_ADDR: maildev FORGEJO__mailer__SMTP_ADDR: "maildev"
FORGEJO__mailer_SMTP_PORT: 10025 FORGEJO__mailer__SMTP_PORT: 10025
FORGEJO__mailer_FROM: forgejo@ci.local FORGEJO__mailer__FROM: "TEST <forgejo@ci.local>"
FORGEJO__mailer_USER: admin FORGEJO__mailer__USER: admin
FORGEJO__mailer_PASSWORD: password FORGEJO__mailer__PASSWD: password
maildev: maildev:
image: maildev/maildev:latest image: maildev/maildev:latest