316 lines
12 KiB
YAML
316 lines
12 KiB
YAML
# This file is auto-generated during the composer install
|
|
parameters:
|
|
# Determine qui est le maitre de l'identitité = SQL / LDAP / SSO
|
|
# Si SQL cela veut dire que c'est l'applicatif qui gère les utilisateurs
|
|
# Sinon la source est externe soit via un annuaire soit via des attributs venant d'un SSO
|
|
# Si la source est externe de fait pas de module d'inscription ni de reset de password
|
|
# Et pas de synchronisation vers un annuaire ou vers ePortail
|
|
masteridentity: %%ninegate_masteridentity
|
|
|
|
# Mode d'authentification soit SQL / LDAP / CAS / SAML
|
|
# Pour l'instant SQL - CAS - SAML Reste à faire LDAP
|
|
# Attention si le masteridentity est différent de SQL le mode d'authentification est forcement différent de SQL
|
|
# Car aucune synchronisation des password n'est possible
|
|
mode_auth: %%ninegate_mode_auth
|
|
|
|
# Mode de registration : none / byuser / byadmin
|
|
# none = désactivation de l'inscription mais reset de password possible
|
|
# byuser = aucune validation par un administrateur, l'utilisateur valide son inscription par lui-même
|
|
# byadmin = validation de l'inscription par un administrateur, sauf si domaine de messagerie dans la liste blanche
|
|
%if %%getVar("ninegate_masteridentity", 'SQL') == "SQL"
|
|
moderegistration: %%ninegate_moderegistration
|
|
keyterm: %%ninegate_keyterm # Taille mini du password
|
|
%else
|
|
moderegistration: none
|
|
keyterm: 8 # Taille mini du password
|
|
%end if
|
|
|
|
# Activation module
|
|
%if %%getVar("ninegate_activate_cron", 'non') == "oui"
|
|
cron_activate: true
|
|
%else
|
|
cron_activate: false
|
|
%end if
|
|
%if %%getVar("ninegate_activate_syncenvole", 'non') == "oui"
|
|
syncenvole_activate: true
|
|
%else
|
|
syncenvole_activate: false
|
|
%end if
|
|
%if %%getVar("ninegate_activate_portal", 'non') == "oui"
|
|
portal_activate: true
|
|
module_activate: false
|
|
page_activate: false
|
|
item_activate: false
|
|
alert_activate: false
|
|
calendar_activate: false
|
|
blog_activate: false
|
|
flux_activate: false
|
|
notice_activate: false
|
|
%else
|
|
portal_activate: false
|
|
%if %%getVar("ninegate_activate_page", 'non') == "oui"
|
|
module_activate: true
|
|
page_activate: true
|
|
%else
|
|
page_activate: false
|
|
%end if
|
|
%if %%getVar("ninegate_activate_item", 'non') == "oui"
|
|
module_activate: true
|
|
item_activate: true
|
|
%else
|
|
item_activate: false
|
|
%end if
|
|
%if %%getVar("ninegate_activate_alert", 'non') == "oui"
|
|
module_activate: true
|
|
alert_activate: true
|
|
%else
|
|
alert_activate: false
|
|
%end if
|
|
%if %%getVar("ninegate_activate_calendar", 'non') == "oui"
|
|
module_activate: true
|
|
calendar_activate: true
|
|
%else
|
|
calendar_activate: false
|
|
%end if
|
|
%if %%getVar("ninegate_activate_blog", 'non') == "oui"
|
|
module_activate: true
|
|
blog_activate: true
|
|
%else
|
|
blog_activate: false
|
|
%end if
|
|
%if %%getVar("ninegate_activate_flux", 'non') == "oui"
|
|
module_activate: true
|
|
flux_activate: true
|
|
%else
|
|
flux_activate: false
|
|
%end if
|
|
%if %%getVar("ninegate_activate_notice", 'non') == "oui"
|
|
module_activate: true
|
|
notice_activate: true
|
|
%else
|
|
notice_activate: false
|
|
%end if
|
|
%end if
|
|
|
|
# Information de base de l'annuaire
|
|
ldap_host: %%adresse_ip_ldap
|
|
ldap_port: %%ldap_port
|
|
%if %%getVar("activer_admin_passfile", 'non') == "oui"
|
|
ldap_user: cn=admin,o=gouv,c=fr
|
|
ldap_password: %%pwdreader("",%%ldap_admin_passfile)
|
|
%else
|
|
ldap_user: %%ldap_reader
|
|
ldap_password: %%pwdreader("",%%ldap_reader_passfile)
|
|
%end if
|
|
ldap_basedn: o=gouv,c=fr
|
|
|
|
# Mise en page
|
|
weburl: %%web_url
|
|
alias: ninegate
|
|
libelle_etab: %%libelle_etab
|
|
numero_etab: %%numero_etab
|
|
colormain: %%ninegate_colormain # Couleur principale
|
|
fontcolorhover: %%ninegate_fontcolorhover # Couleur des polices sur fond de couleur principale
|
|
labelniveau01: %%ninegate_niveau01label # Label singulier du niveau 01 d'organisation
|
|
labelsniveau01: %%ninegate_niveau01labels # Label pluriel du niveau 01 d'organisation
|
|
iconniveau01: %%ninegate_niveau01icon # Icon du niveau 01 d'organisation
|
|
labelsirenniveau01: SIREN # Label SIREN
|
|
%if %%getVar("ninegate_niveau02view", 'non') == "oui"
|
|
viewniveau02: true # Gérer un niveau 02 d'organisation
|
|
labelniveau02: %%ninegate_niveau02label # Label singulier du niveau 02 d'organisation
|
|
labelsniveau02: %%ninegate_niveau02labels # Label pluriel du niveau 02 d'organisation
|
|
iconniveau02: %%ninegate_niveau02icon # Icon du niveau 02 d'organisation
|
|
labelsiretniveau02: SIRET # Label SIRET
|
|
%else
|
|
viewniveau02: false # Gérer un niveau 02 d'organisation
|
|
labelniveau02: niveau02 # Label singulier du niveau 02 d'organisation
|
|
labelsniveau02: niveaus02 # Label pluriel du niveau 02 d'organisation
|
|
iconniveau02: fa-sitemap # Icon du niveau 02 d'organisation
|
|
labelsiretniveau02: SIRET # Label SIRET
|
|
%end if
|
|
|
|
# Si masteridentity est à SQL = où sont synchronisées les datas dans l'annuaire
|
|
%if %%getVar("ninegate_syncldap", 'non') == "oui"
|
|
ldap_sync: true
|
|
%else
|
|
ldap_sync: false
|
|
%end if
|
|
|
|
%if %%getVar("ninegate_test_conf_ldap", 'non') == "oui"
|
|
ldap_baseuser: ou=users,ou=%%ninegate_organization,o=gouv,c=fr
|
|
ldap_baseniveau01: ou=%%ninegate_niveau01branche,ou=%%ninegate_organization,o=gouv,c=fr
|
|
ldap_baseniveau02: ou=%%ninegate_niveau02branche,ou=%%ninegate_organization,o=gouv,c=fr
|
|
ldap_basegroup: ou=groups,ou=%%ninegate_organization,o=gouv,c=fr
|
|
%else
|
|
ldap_baseuser:
|
|
ldap_baseniveau01:
|
|
ldap_baseniveau02:
|
|
ldap_basegroup:
|
|
%end if
|
|
|
|
# Si masteridentity est à LDAP = quel est le modele d'organisation
|
|
# Si open = rien de particulier
|
|
# Si scribe = on génére des groupes correspondant au profil / classe / niveau / option
|
|
%if %%getVar("ninegate_masteridentity", 'non') == "LDAP"
|
|
ldap_template: %%ninegate_ldaptemplate
|
|
%else
|
|
ldap_template: open
|
|
%end if
|
|
|
|
# Si masteridentity est à LDAP = quel champs sont à récupérer = faudrait templetiser dans genconfig
|
|
ldap_username: uid
|
|
ldap_firstname: givenname
|
|
ldap_lastname: sn
|
|
ldap_email: mail
|
|
ldap_usersadmin: [admin]
|
|
|
|
# Activation Widget
|
|
%if %%getVar("ninegate_activate_widlimesurvey", 'non') == "oui"
|
|
activate_widlimesurvey: true
|
|
widlimesurvey_url: %%ninegate_widlimesurvey_url
|
|
widlimesurvey_apiuser: %%ninegate_widlimesurvey_apiuser
|
|
widlimesurvey_apikey: %%ninegate_widlimesurvey_apikey
|
|
widlimesurvey_syncenvole: %%ninegate_widlimesurvey_syncenvole
|
|
%else
|
|
activate_widlimesurvey: false
|
|
%end if
|
|
|
|
%if %%getVar("ninegate_activate_widmoodle", 'non') == "oui"
|
|
activate_widmoodle: true
|
|
widmoodle_url: %%ninegate_widmoodle_url
|
|
widmoodle_apikey: %%ninegate_widmoodle_apikey
|
|
widmoodle_syncenvole: %%ninegate_widmoodle_syncenvole
|
|
%else
|
|
activate_widmoodle: false
|
|
%end if
|
|
|
|
%if %%getVar("ninegate_activate_widopensondage", 'non') == "oui"
|
|
activate_widopensondage: true
|
|
widopensondage_url: %%ninegate_widopensondage_url
|
|
%else
|
|
activate_widopensondage: false
|
|
%end if
|
|
|
|
%if %%getVar("ninegate_activate_widpiwik", 'non') == "oui"
|
|
activate_widpiwik: true
|
|
widpiwik_url: %%ninegate_widpiwik_url
|
|
widpiwik_syncenvole: %%ninegate_widpiwik_syncenvole
|
|
%else
|
|
activate_widpiwik: false
|
|
%end if
|
|
|
|
%if %%getVar("activer_sondepiwik_local", 'non') == "oui"
|
|
activate_widsonde: true
|
|
widsonde_url: /sondepiwik/envoleTrackeur.js.php
|
|
%else if %%getVar("activer_piwik", 'non') == "oui"
|
|
activate_widsonde: true
|
|
widsonde_url: /piwik/envoleTrackeur.js.php
|
|
%else
|
|
activate_widsonde: false
|
|
widsonde_url:
|
|
%end if
|
|
|
|
%if %%getVar("ninegate_activate_widwordpress", 'non') == "oui"
|
|
activate_widwordpress: true
|
|
widwordpress_url: %%ninegate_widwordpress_url
|
|
widwordpress_syncenvole: %%ninegate_widwordpress_syncenvole
|
|
%else
|
|
activate_widwordpress: false
|
|
%end if
|
|
|
|
# Synchrinisation eportail
|
|
%if %%getVar("ninegate_synceportail", 'non') == "oui"
|
|
eportail_sync: true
|
|
eportail_url: /eportail
|
|
eportail_login: /eportail/login.php
|
|
eportail_database_host: '%database_host%'
|
|
eportail_database_port: 3306
|
|
eportail_database_name: eportail
|
|
eportail_database_user: eportail
|
|
eportail_database_password: "changme"
|
|
%else
|
|
eportail_sync: false
|
|
eportail_url: # /eportail
|
|
eportail_login: # /eportail/login.php
|
|
eportail_database_host: # 172.27.7.64
|
|
eportail_database_port: # 3306
|
|
eportail_database_name: # eportail
|
|
eportail_database_user: # eportail
|
|
eportail_database_password: # "changme"
|
|
%end if
|
|
|
|
# Si mode_auth = CAS
|
|
cas_host: %%eolesso_adresse
|
|
cas_path: %%eolesso_cas_folder
|
|
cas_port: %%eolesso_port
|
|
|
|
# Si mode_aut = SAML
|
|
saml_entityid: 'http://dev.nuonet.cadoles'
|
|
saml_logout_url: 'http://172.27.7.67:8088/idp/profile/Logout'
|
|
saml_idps_list: ['http://172.27.7.67:8088/idp/shibboleth']
|
|
|
|
# Si mode_auth = CAS ou SAML les attributs permettant de matché avec les utilisateurs
|
|
user_attr_cas_username: username
|
|
user_attr_cas_mail: email
|
|
user_attr_cas_lastname: lastname
|
|
user_attr_cas_firstname: firstname
|
|
|
|
user_attr_saml_username: eduPersonPrincipalName
|
|
user_attr_saml_mail: mail
|
|
user_attr_saml_lastname: sn
|
|
user_attr_saml_firstname: givenName
|
|
|
|
%if %%is_defined("ninegate_smtpport")
|
|
mailer_port: '%%ninegate_smtpport'
|
|
mailer_encryption: %%ninegate_smtpencryption
|
|
mailer_authmode: %%ninegate_smtpauthmode
|
|
noreply: %%ninegate_noreply
|
|
%else
|
|
mailer_port: '2525'
|
|
mailer_encryption: null
|
|
mailer_authmode: null
|
|
noreply: %%system_mail_to
|
|
%end if
|
|
|
|
# Doctrine Configuration
|
|
doctrine:
|
|
dbal:
|
|
default_connection: default
|
|
connections:
|
|
default:
|
|
driver: pdo_mysql
|
|
host: '%database_host%'
|
|
port: '%database_port%'
|
|
dbname: '%database_name%'
|
|
user: '%database_user%'
|
|
password: '%database_password%'
|
|
charset: UTF8
|
|
%if %%getVar("ninegate_synceportail", 'non') == "oui"
|
|
eportail:
|
|
driver: pdo_mysql
|
|
host: '%eportail_database_host%'
|
|
port: '%eportail_database_port%'
|
|
dbname: '%eportail_database_name%'
|
|
user: '%eportail_database_user%'
|
|
password: '%eportail_database_password%'
|
|
charset: UTF8
|
|
%end if
|
|
orm:
|
|
default_entity_manager: default
|
|
entity_managers:
|
|
default:
|
|
connection: default
|
|
mappings:
|
|
CadolesCoreBundle: ~
|
|
CadolesCronBundle: ~
|
|
CadolesPortalBundle: ~
|
|
%if %%getVar("ninegate_synceportail", 'non') == "oui"
|
|
eportail:
|
|
connection: eportail
|
|
mappings:
|
|
CadolesCoreBundle: ~
|
|
CadolesCronBundle: ~
|
|
CadolesPortalBundle: ~
|
|
%end if
|
|
|
|
|