tmpl/gogs.conf: Activation des notifications par email

This commit is contained in:
Philippe Caseiro 2015-06-04 11:14:19 +02:00
parent 49b60eafb1
commit 4848f8d047
1 changed files with 14 additions and 7 deletions

View File

@ -94,7 +94,11 @@ REQUIRE_SIGNIN_VIEW = false
; Cache avatar as picture ; Cache avatar as picture
ENABLE_CACHE_AVATAR = false ENABLE_CACHE_AVATAR = false
; Mail notification ; Mail notification
%if %%getVar('gogs_mail','non') == 'non'
ENABLE_NOTIFY_MAIL = false ENABLE_NOTIFY_MAIL = false
%else
ENABLE_NOTIFY_MAIL = true
%end if
; More detail: https://github.com/gogits/gogs/issues/165 ; More detail: https://github.com/gogits/gogs/issues/165
ENABLE_REVERSE_PROXY_AUTHENTICATION = false ENABLE_REVERSE_PROXY_AUTHENTICATION = false
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
@ -120,11 +124,11 @@ SUBJECT = %(APP_NAME)s
; Gmail: smtp.gmail.com:587 ; Gmail: smtp.gmail.com:587
; QQ: smtp.qq.com:25 ; QQ: smtp.qq.com:25
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used. ; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
%if %%getVar('activer_exim_relay_smtp','non') == 'oui' %if %%getVar('activer_exim_relay_smtp','non') == 'oui'
HOST = %%exim_relay_smtp HOST = %%exim_relay_smtp:25
%else %else
HOST = 127.0.0.1 HOST = 127.0.0.1
%end if %end if
; Do not verify the certificate of the server. Only use this for self-signed certificates ; Do not verify the certificate of the server. Only use this for self-signed certificates
SKIP_VERIFY = true SKIP_VERIFY = true
; Use client certificate ; Use client certificate
@ -132,14 +136,17 @@ USE_CERTIFICATE = false
CERT_FILE = custom/mailer/cert.pem CERT_FILE = custom/mailer/cert.pem
KEY_FILE = custom/mailer/key.pem KEY_FILE = custom/mailer/key.pem
; Mail from address, RFC 5322. This can be just an email address, or the "Name" <email@example.com> format ; Mail from address, RFC 5322. This can be just an email address, or the "Name" <email@example.com> format
%if %%getVar('gogs_mail_from','M-M-M-M') == 'M-M-M-M' %if %%getVar('gogs_mail_from','M-M-M-M') == 'M-M-M-M'
FROM = %%system_mail_from FROM = %%system_mail_from
%else %else
FROM = %%gogs_mail_from FROM = %%gogs_mail_from
%end if %end if
; Mailer user name and password ; Mailer user name and password
; USER = ; USER =
; PASSWD = ; PASSWD =
%else
[mailer]
ENABLED = false
%end if %end if
[oauth] [oauth]