2018-12-18 09:44:39 +01:00
|
|
|
# This file is auto-generated during the composer install
|
|
|
|
parameters:
|
2019-04-17 17:27:19 +02:00
|
|
|
%if %%getVar("ninegate_db_mode", 'non') == "externe"
|
|
|
|
database_host: %%ninegate_dbserver
|
|
|
|
%if %%getVar('ninegate_dbport', 'non') != "non"
|
|
|
|
database_port: %%ninegate_dbport
|
2018-12-18 09:44:39 +01:00
|
|
|
%else
|
|
|
|
database_port: null
|
|
|
|
%end if
|
2019-04-17 17:27:19 +02:00
|
|
|
%else if %%getVar("ninegate_db_mode", 'non') == "default"
|
2018-12-18 09:44:39 +01:00
|
|
|
%set dbhost = %%getVar('edb_host', 'non')
|
|
|
|
%if %%dbhost == 'non' and %%mode_conteneur_actif == 'oui':
|
|
|
|
database_host: %%adresse_ip_mysql
|
|
|
|
%else
|
|
|
|
%if %%dbhost == 'non'
|
|
|
|
database_host: localhost
|
|
|
|
%else
|
|
|
|
database_host: %%edb_host
|
|
|
|
%end if
|
|
|
|
%end if
|
|
|
|
%if %%getVar('edb_port', 'non') != "non"
|
|
|
|
database_port: %%edb_port
|
|
|
|
%else
|
|
|
|
database_port: null
|
|
|
|
%end if
|
|
|
|
%else
|
|
|
|
database_host: %%adresse_ip_mysql
|
|
|
|
database_port: null
|
|
|
|
%end if
|
2019-04-17 17:27:19 +02:00
|
|
|
database_name: ninegate
|
|
|
|
database_user: ninegate
|
2018-12-18 09:44:39 +01:00
|
|
|
database_password: "changeme"
|
2020-01-13 15:47:35 +01:00
|
|
|
%if %%getVar("ninegate_activer_localmail", 'non') == "oui"
|
|
|
|
mailer_transport: sendmail
|
|
|
|
mailer_host: '/usr/sbin/sendmail'
|
|
|
|
mailer_user: ~
|
|
|
|
mailer_password: ~
|
|
|
|
%else
|
2018-12-18 09:44:39 +01:00
|
|
|
mailer_transport: smtp
|
2019-04-17 17:27:19 +02:00
|
|
|
%if %%is_defined("ninegate_smtphost")
|
|
|
|
mailer_host: '%%ninegate_smtphost'
|
|
|
|
mailer_user: '%%ninegate_smtpuser'
|
|
|
|
mailer_password: '%%pwdreader("",%%ninegate_smtppwd)'
|
2018-12-18 09:44:39 +01:00
|
|
|
%else
|
|
|
|
mailer_host: 'localhost'
|
|
|
|
mailer_user: ''
|
|
|
|
mailer_password: ''
|
2020-01-13 15:47:35 +01:00
|
|
|
%end if
|
2018-12-18 09:44:39 +01:00
|
|
|
%end if
|
|
|
|
secret: ThisTokenIsNotSoSecretChangeIt
|