dicos/50_gogs.xml: Ajout de variables pour l'envois d'emails

tmpl/gogs.conf: Ajout de la configuraiton pour l'envois de mails
This commit is contained in:
Philippe Caseiro 2015-05-29 16:43:26 +02:00
parent 56ba9d23ad
commit 93c235c52f
2 changed files with 23 additions and 6 deletions

View File

@ -31,6 +31,13 @@
</variable>
</family>
<family name='forge'>
<variable name='gogs_name' type='string' description='Nom de la forge' mandatory='True'>
<value>Forge Numérique EOLE</value>
</variable>
<variable name='gogs_mail' type='oui/non' description="Activer l'envois de courriels">
<value>non</value>
</variable>
<variable name='gogs_mail_from' type='string' description="Adresse courriel a l'origine des messages de la forge"/>
<variable name='gogs_web_name' type='string' description='Nom DNS de la forge' mandatory='True'/>
<variable name='git_root' type='string' description='Repertoire des dépôts git' mandatory='True'>
<value>/var/db/gogs/repo</value>

View File

@ -2,7 +2,7 @@
# PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE
; App name that shows on every page title
APP_NAME = Gogs: Go Git Service
APP_NAME = %%gogs_name
; Change it if you run locally
RUN_USER = gogs
; Either "dev", "prod" or "test", default is "dev"
@ -108,6 +108,7 @@ DELIVER_TIMEOUT = 5
; Allow insecure certification
SKIP_TLS_VERIFY = false
%if %%getVar('gogs_mail','non') == 'oui'
[mailer]
ENABLED = false
; Buffer length of channel, keep it as it is if you don't know what it is.
@ -118,18 +119,27 @@ SUBJECT = %(APP_NAME)s
; Gmail: smtp.gmail.com:587
; 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.
HOST =
%if %%getVar('activer_exim_relay_smtp','non') == 'oui'
HOST = %%exim_relay_smtp
%else
HOST = 127.0.0.1
%end if
; Do not verify the certificate of the server. Only use this for self-signed certificates
SKIP_VERIFY =
SKIP_VERIFY = true
; Use client certificate
USE_CERTIFICATE = false
CERT_FILE = custom/mailer/cert.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
FROM =
%if %%getVar('gogs_mail_from','M-M-M-M') == 'M-M-M-M'
FROM = %%system_mail_from
%else
FROM = %%gogs_mail_from
%end if
; Mailer user name and password
USER =
PASSWD =
; USER =
; PASSWD =
%end if
[oauth]
ENABLED = false