From de793150f45361d545c6951107d55b94cc578d24 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Mon, 4 Mar 2024 16:25:24 +0300 Subject: [PATCH] Enable the mailer --- forgejo/forgejo/conf/app.ini | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/forgejo/forgejo/conf/app.ini b/forgejo/forgejo/conf/app.ini index 217e0ac..b0caa30 100644 --- a/forgejo/forgejo/conf/app.ini +++ b/forgejo/forgejo/conf/app.ini @@ -127,7 +127,14 @@ REVERSE_PROXY_TRUSTED_PROXIES = * PASSWORD_HASH_ALGO = pbkdf2_hi [mailer] -ENABLED = false +; You can disable the mailer and remove the below keys +ENABLED = true +PROTOCOL = smtp+starttls +SMTP_ADDR = smtp.protonmail.ch +SMTP_PORT = 587 +USER = noreply@4rs.nl +PASSWD = YOURSMTPTOKEN ; CHANGE_ME (your token) +SEND_AS_PLAIN_TEXT = true [openid] ENABLE_OPENID_SIGNIN = true @@ -151,6 +158,10 @@ ENABLE_SITEMAP = false DISABLE_USERS_PAGE = true [service] +;; Mailer +ENABLE_NOTIFY_MAIL = true +REGISTER_EMAIL_CONFIRM = false + ;; Registration configuration DISABLE_REGISTRATION = false REQUIRE_SIGNIN_VIEW = false @@ -158,6 +169,7 @@ REGISTER_EMAIL_CONFIRM = false ENABLE_NOTIFY_MAIL = false ALLOW_ONLY_EXTERNAL_REGISTRATION = false EMAIL_DOMAIN_BLOCKLIST = gmail.com,yahoo.com,icloud.com,hotmail.com + ;; Captcha configuration ENABLE_CAPTCHA = true REQUIRE_CAPTCHA_FOR_LOGIN = true @@ -171,6 +183,7 @@ HCAPTCHA_SITEKEY = blabla AUTO_WATCH_NEW_REPOS = false DEFAULT_ALLOW_CREATE_ORGANIZATION = false DEFAULT_ORG_MEMBER_VISIBLE = true + ;; Profile configuration DEFAULT_KEEP_EMAIL_PRIVATE = false DEFAULT_USER_VISIBILITY = private