ninestat/tmpl/ninestat-parameters.yml

44 lines
1.2 KiB
YAML

# This file is auto-generated during the composer install
parameters:
%if %%getVar("ninestat_db_mode", 'non') == "externe"
database_host: %%ninestat_dbserver
%if %%getVar('ninestat_dbport', 'non') != "non"
database_port: %%ninestat_dbport
%else
database_port: null
%end if
%else if %%getVar("ninestat_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: ninestat
database_user: ninestat
database_password: "changeme"
mailer_transport: smtp
%if %%is_defined("ninestat_smtphost")
mailer_host: '%%ninestat_smtphost'
mailer_user: '%%ninestat_smtpuser'
mailer_password: '%%pwdreader("",%%ninestat_smtppwd)'
%else
mailer_host: 'localhost'
mailer_user: ''
mailer_password: ''
%end if
secret: ThisTokenIsNotSoSecretChangeIt