ninegate/tmpl/ninegate-parameters.yml
2019-04-17 17:27:19 +02:00

44 lines
1.2 KiB
YAML

# This file is auto-generated during the composer install
parameters:
%if %%getVar("ninegate_db_mode", 'non') == "externe"
database_host: %%ninegate_dbserver
%if %%getVar('ninegate_dbport', 'non') != "non"
database_port: %%ninegate_dbport
%else
database_port: null
%end if
%else if %%getVar("ninegate_db_mode", 'non') == "default"
%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
database_name: ninegate
database_user: ninegate
database_password: "changeme"
mailer_transport: smtp
%if %%is_defined("ninegate_smtphost")
mailer_host: '%%ninegate_smtphost'
mailer_user: '%%ninegate_smtpuser'
mailer_password: '%%pwdreader("",%%ninegate_smtppwd)'
%else
mailer_host: 'localhost'
mailer_user: ''
mailer_password: ''
%end if
secret: ThisTokenIsNotSoSecretChangeIt