2020-07-02 15:00:08 +02:00
|
|
|
# SYMFONY
|
|
|
|
APP_ENV=PROD
|
|
|
|
APP_SECRET=%%pwdreader("",%%nineskeletor_api_key)
|
|
|
|
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
|
|
|
|
#TRUSTED_HOSTS='^(localhost|example\.com)$'
|
2020-07-01 13:32:02 +02:00
|
|
|
|
|
|
|
|
2020-07-02 15:00:08 +02:00
|
|
|
# BASIC
|
|
|
|
APP_WEBURL=%%web_url
|
|
|
|
APP_AUTH=CAS
|
|
|
|
APP_ALIAS=nineskeletor
|
|
|
|
APP_NAME=Nineskeletor
|
2020-07-07 10:29:55 +02:00
|
|
|
APP_CRON=1
|
2020-07-02 15:00:08 +02:00
|
|
|
APP_MASTERIDENTITY=%%nineskeletor_masteridentity
|
|
|
|
%if %%getVar("nineskeletor_masteridentity", 'LDAP') == "LDAP"
|
|
|
|
APP_MASTERURL=
|
|
|
|
APP_MASTERKEY=
|
|
|
|
%else
|
|
|
|
APP_MASTERURL=%%nineskeletor_urlidentity
|
|
|
|
APP_MASTERKEY=%%nineskeletor_apikeyidentity
|
|
|
|
%end if
|
2020-07-01 13:32:02 +02:00
|
|
|
|
|
|
|
|
2020-07-02 15:00:08 +02:00
|
|
|
# BDD
|
2020-07-01 13:32:02 +02:00
|
|
|
DATABASE_NAME=nineskeletor
|
|
|
|
DATABASE_USER=nineskeletor
|
|
|
|
DATABASE_PASSWORD=tochange
|
2020-07-02 15:00:08 +02:00
|
|
|
%if %%getVar("nineskeletor_db_mode", 'non') == "externe"
|
|
|
|
DATABASE_HOST=%%nineskeletor_dbserver
|
|
|
|
%else if %%getVar("nineskeletor_db_mode", 'non') == "default"
|
2020-07-01 13:32:02 +02: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=localhost
|
|
|
|
%end if
|
|
|
|
%end if
|
|
|
|
%else
|
|
|
|
DATABASE_HOST=%%adresse_ip_mysql
|
|
|
|
%end if
|
|
|
|
|
|
|
|
|
2020-07-02 15:00:08 +02:00
|
|
|
# MAIL sendmail / smtp
|
|
|
|
%if %%getVar("nineskeletor_activer_localmail", "oui") == "oui"
|
|
|
|
MAILER_METHOD=sendmail
|
|
|
|
MAILER_URL=
|
|
|
|
%else
|
|
|
|
MAILER_METHOD=smtp
|
|
|
|
MAILER_URL=smtp://%%nineskeletor_smtphost:%%nineskeletor_smtpport?encryption=%%nineskeletor_smtpencryption&auth_mode=%%nineskeletor_smtpauthmode&username=%%nineskeletor_smtpuser&password=%%nineskeletor_smtppwd
|
|
|
|
%end if
|
|
|
|
MAILER_NOREPLY=noreply@noreply.fr
|
|
|
|
|
|
|
|
|
|
|
|
# LDAP
|
|
|
|
%if %%getVar("nineskeletor_masteridentity", 'LDAP') == "LDAP"
|
|
|
|
LDAP_MODEL=%%nineskeletor_ldaptemplate
|
|
|
|
%else
|
|
|
|
LDAP_MODEL=open
|
|
|
|
%end if
|
|
|
|
LDAP_HOST=%%adresse_ip_ldap
|
|
|
|
LDAP_PORT=%%ldap_port
|
|
|
|
LDAP_USER=%%ldap_reader
|
|
|
|
LDAP_PASSWORD=%%pwdreader("",%%ldap_reader_passfile)
|
|
|
|
LDAP_BASEDN=%%ldap_base_dn
|
|
|
|
%if %%getVar("nineskeletor_ldaptemplate", 'scribe') == "scribe"
|
|
|
|
LDAP_USERNAME=uid
|
|
|
|
LDAP_FIRSTNAME=givenname
|
|
|
|
LDAP_LASTNAME=sn
|
|
|
|
LDAP_EMAIL=mail
|
|
|
|
LDAP_FILTERGROUP=(cn=*)
|
|
|
|
LDAP_FILTERUSER=(uid=*)
|
|
|
|
%else
|
|
|
|
LDAP_USERNAME=%%nineskeletor_ldapuid
|
|
|
|
LDAP_FIRSTNAME=%%nineskeletor_ldapfirstname
|
|
|
|
LDAP_LASTNAME=%%nineskeletor_ldaplastname
|
|
|
|
LDAP_EMAIL=%%nineskeletor_ldapmail
|
|
|
|
LDAP_FILTERGROUP=%%nineskeletor_ldapfiltergroup
|
|
|
|
LDAP_FILTERUSER=%%nineskeletor_ldapfilteruser
|
|
|
|
%end if
|
|
|
|
%if %%getVar("activer_addadmin", "non") == "non"
|
|
|
|
LDAP_ADMINS='["admin"]'
|
|
|
|
%else
|
|
|
|
LDAP_ADMINS='["admin","%%uid_addadmin"]'
|
|
|
|
%end if
|
|
|
|
|
|
|
|
|
|
|
|
# CAS
|
2020-07-01 13:32:02 +02:00
|
|
|
CAS_HOST=%%eolesso_adresse
|
|
|
|
CAS_PORT=%%eolesso_port
|
2020-07-02 15:00:08 +02:00
|
|
|
CAS_PATH=%%eolesso_cas_folder
|
|
|
|
CAS_USERNAME=username
|
|
|
|
CAS_EMAIL=email
|
|
|
|
CAS_LASTNAME=lastname
|
|
|
|
CAS_FIRSTNAME=firstname
|
|
|
|
|
|
|
|
|
|
|
|
# Proxy
|
|
|
|
%if %%activer_proxy_client == 'oui'
|
2020-07-07 10:29:55 +02:00
|
|
|
PROXY_USE=1
|
2020-07-02 15:00:08 +02:00
|
|
|
PROXY_HOST=%%proxy_client_adresse
|
|
|
|
PROXY_PORT=%%proxy_client_port
|
|
|
|
%else
|
2020-07-07 10:29:55 +02:00
|
|
|
PROXY_USE=0
|
2020-07-02 15:00:08 +02:00
|
|
|
PROXY_HOST=
|
|
|
|
PROXY_PORT=
|
2020-07-07 10:29:55 +02:00
|
|
|
%end if
|
|
|
|
|
|
|
|
|
|
|
|
# Sonde statistic
|
|
|
|
%if %%getVar("activer_sondepiwik_local", 'non') == "oui"
|
|
|
|
SONDE_USE=1
|
|
|
|
SONDE_URL=/sondepiwik/envoleTrackeur.js.php
|
|
|
|
%else if %%getVar("activer_piwik", 'non') == "oui"
|
|
|
|
SONDE_USE=1
|
|
|
|
SONDE_URL=/piwik/envoleTrackeur.js.php
|
|
|
|
%else
|
|
|
|
SONDE_USE=0
|
|
|
|
SONDE_URL=
|
2020-07-02 15:00:08 +02:00
|
|
|
%end if
|