ninegate/tmpl/ninegate-parameters.yml

51 lines
1.4 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"
%if %%getVar("ninegate_activer_localmail", 'non') == "oui"
mailer_transport: sendmail
mailer_host: '/usr/sbin/sendmail'
mailer_user: ~
mailer_password: ~
%else
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
%end if
secret: ThisTokenIsNotSoSecretChangeIt