Support de l'authentification SMTP dans la configuration GOGS
This commit is contained in:
parent
af9d3a6e46
commit
40547fc477
|
@ -38,6 +38,12 @@
|
||||||
<value>non</value>
|
<value>non</value>
|
||||||
</variable>
|
</variable>
|
||||||
<variable name='gogs_mail_from' type='string' description="Adresse courriel a l'origine des messages de la forge"/>
|
<variable name='gogs_mail_from' type='string' description="Adresse courriel a l'origine des messages de la forge"/>
|
||||||
|
<variable name='gogs_mail_auth' type='oui/non' description="Utiliser un compte pour le serveur smtp">
|
||||||
|
<value>non</value>
|
||||||
|
</variable>
|
||||||
|
<variable name='gogs_email_user' type='string' description="Nom de l'utilisateur SMTP"/>
|
||||||
|
<variable name='gogs_email_password' type='string' description="Mot de passe de l'utilisateur"/>
|
||||||
|
|
||||||
<variable name='gogs_web_name' type='string' description='Nom DNS de la forge' mandatory='True'/>
|
<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'>
|
<variable name='git_root' type='string' description='Repertoire des dépôts git' mandatory='True'>
|
||||||
<value>/var/db/gogs/repo</value>
|
<value>/var/db/gogs/repo</value>
|
||||||
|
@ -73,6 +79,11 @@
|
||||||
<target type='family'>forge</target>
|
<target type='family'>forge</target>
|
||||||
<target type='service_accesslist'>gogs_ssh</target>
|
<target type='service_accesslist'>gogs_ssh</target>
|
||||||
</condition>
|
</condition>
|
||||||
|
<condition name='disabled_if_in' source='gogs_mail_auth'>
|
||||||
|
<param>non</param>
|
||||||
|
<target type='variable'>gogs_email_user</target>
|
||||||
|
<target type='variable'>gogs_email_password</target>
|
||||||
|
</condition>
|
||||||
<fill name='calc_multi_condition' target='gogs_nginx'>
|
<fill name='calc_multi_condition' target='gogs_nginx'>
|
||||||
<param>oui</param>
|
<param>oui</param>
|
||||||
<param name="operator">OR</param>
|
<param name="operator">OR</param>
|
||||||
|
|
|
@ -141,9 +141,11 @@ FROM = %%system_mail_from
|
||||||
%else
|
%else
|
||||||
FROM = %%gogs_mail_from
|
FROM = %%gogs_mail_from
|
||||||
%end if
|
%end if
|
||||||
|
%if %%getVar('gogs_mail_auth','non') == 'oui'
|
||||||
; Mailer user name and password
|
; Mailer user name and password
|
||||||
; USER =
|
USER = %%gogs_email_user
|
||||||
; PASSWD =
|
PASSWD = %%gogs_email_password
|
||||||
|
%end if
|
||||||
%else
|
%else
|
||||||
[mailer]
|
[mailer]
|
||||||
ENABLED = false
|
ENABLED = false
|
||||||
|
|
Loading…
Reference in New Issue