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
@ -121,7 +125,7 @@ SUBJECT = %(APP_NAME)s
; 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
@ -140,6 +144,9 @@ FROM = %%gogs_mail_from
; Mailer user name and password ; Mailer user name and password
; USER = ; USER =
; PASSWD = ; PASSWD =
%else
[mailer]
ENABLED = false
%end if %end if
[oauth] [oauth]