diff options
author | Clar Fon <15850505+clarfonthey@users.noreply.github.com> | 2022-08-02 01:24:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 13:24:18 +0800 |
commit | 036dd8a788468e7730b29982747cc3cf8829ce86 (patch) | |
tree | 27d7bdd0a616a6f67a4e2140136cfb9c9b80296d /templates/install.tmpl | |
parent | ae3b88bef36179fb43ddcf2a14b46ca0969d8aad (diff) | |
download | gitea-036dd8a788468e7730b29982747cc3cf8829ce86.tar.gz gitea-036dd8a788468e7730b29982747cc3cf8829ce86.zip |
Rework mailer settings (#18982)
* `PROTOCOL`: can be smtp, smtps, smtp+startls, smtp+unix, sendmail, dummy
* `SMTP_ADDR`: domain for SMTP, or path to unix socket
* `SMTP_PORT`: port for SMTP; defaults to 25 for `smtp`, 465 for `smtps`, and 587 for `smtp+startls`
* `ENABLE_HELO`, `HELO_HOSTNAME`: reverse `DISABLE_HELO` to `ENABLE_HELO`; default to false + system hostname
* `FORCE_TRUST_SERVER_CERT`: replace the unclear `SKIP_VERIFY`
* `CLIENT_CERT_FILE`, `CLIENT_KEY_FILE`, `USE_CLIENT_CERT`: clarify client certificates here
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/install.tmpl')
-rw-r--r-- | templates/install.tmpl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl index 8f87a9e0d6..36f58218d4 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -173,8 +173,12 @@ {{.locale.Tr "install.email_title"}} </summary> <div class="inline field"> - <label for="smtp_host">{{.locale.Tr "install.smtp_host"}}</label> - <input id="smtp_host" name="smtp_host" value="{{.smtp_host}}"> + <label for="smtp_addr">{{.locale.Tr "install.smtp_addr"}}</label> + <input id="smtp_addr" name="smtp_addr" value="{{.smtp_addr}}"> + </div> + <div class="inline field"> + <label for="smtp_port">{{.locale.Tr "install.smtp_port"}}</label> + <input id="smtp_port" name="smtp_port" value="{{.smtp_port}}"> </div> <div class="inline field {{if .Err_SMTPFrom}}error{{end}}"> <label for="smtp_from">{{.locale.Tr "install.smtp_from"}}</label> |