ninegate/tmpl/ninegate-template.yml

286 lines
10 KiB
YAML
Raw Normal View History

2018-12-18 09:44:39 +01:00
# This file is auto-generated during the composer install
parameters:
2019-03-12 14:50:57 +01:00
# 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
2019-04-17 17:27:19 +02:00
masteridentity: %%ninegate_masteridentity
2018-12-18 09:44:39 +01:00
2019-03-12 14:50:57 +01:00
# 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
2019-04-17 17:27:19 +02:00
mode_auth: %%ninegate_mode_auth
2019-03-12 14:50:57 +01:00
# 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
2019-05-07 17:18:54 +02:00
%if %%getVar("ninegate_masteridentity", 'SQL') == "SQL"
2019-04-17 17:27:19 +02:00
moderegistration: %%ninegate_moderegistration
2019-05-07 17:18:54 +02:00
keyterm: %%ninegate_keyterm # Taille mini du password
2019-03-12 14:50:57 +01:00
%else
moderegistration: none
2019-05-07 17:18:54 +02:00
keyterm: 8 # Taille mini du password
2019-03-12 14:50:57 +01:00
%end if
2018-12-18 09:44:39 +01:00
2019-03-21 17:15:06 +01:00
# Activation module
2019-06-13 13:15:55 +02:00
%if %%getVar("ninegate_activate_cron", 'non') == "oui"
2019-03-21 17:15:06 +01:00
cron_activate: true
2019-06-13 13:15:55 +02:00
%else
cron_activate: false
%end if
%if %%getVar("ninegate_activate_syncenvole", 'non') == "oui"
syncenvole_activate: true
%else
syncenvole_activate: false
%end if
2019-07-16 12:10:32 +02:00
%if %%getVar("ninegate_activate_websocket", 'non') == "oui"
websocket_activate: true
websocket_port: 5555
%else
websocket_activate: false
websocket_port: 5555
%end if
2019-06-04 09:24:42 +02:00
%if %%getVar("ninegate_activate_portal", 'non') == "oui"
2019-03-21 17:15:06 +01:00
portal_activate: true
2019-06-04 15:05:41 +02:00
module_activate: false
page_activate: false
item_activate: false
alert_activate: false
calendar_activate: false
blog_activate: false
flux_activate: false
notice_activate: false
2019-06-04 09:24:42 +02:00
%else
portal_activate: false
2019-06-04 15:05:41 +02:00
%if %%getVar("ninegate_activate_page", 'non') == "oui"
module_activate: true
page_activate: true
2019-06-04 09:24:42 +02:00
%else
2019-06-04 15:05:41 +02:00
page_activate: false
%end if
2019-06-13 13:15:55 +02:00
%if %%getVar("ninegate_activate_item", 'non') == "oui"
2019-06-04 15:05:41 +02:00
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
2019-06-04 09:24:42 +02:00
%end if
%end if
2019-03-12 14:50:57 +01:00
# Information de base de l'annuaire
2018-12-18 09:44:39 +01:00
ldap_host: %%adresse_ip_ldap
ldap_port: %%ldap_port
2019-04-18 15:13:54 +02:00
%if %%getVar("activer_admin_passfile", 'non') == "oui"
2018-12-18 09:44:39 +01:00
ldap_user: cn=admin,o=gouv,c=fr
2019-04-18 17:02:28 +02:00
ldap_password: %%pwdreader("",%%ldap_admin_passfile)
2019-04-08 10:16:07 +02:00
%else
2019-06-24 11:07:50 +02:00
ldap_user: %%ldap_reader
2019-04-08 10:16:07 +02:00
ldap_password: %%pwdreader("",%%ldap_reader_passfile)
%end if
2018-12-18 09:44:39 +01:00
ldap_basedn: o=gouv,c=fr
2019-03-12 14:50:57 +01:00
# Mise en page
2019-06-04 15:05:41 +02:00
weburl: %%web_url
2019-04-17 17:27:19 +02:00
alias: ninegate
2019-03-12 14:50:57 +01:00
libelle_etab: %%libelle_etab
numero_etab: %%numero_etab
2019-04-17 17:27:19 +02:00
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
2018-12-18 09:44:39 +01:00
%else
2019-04-17 17:27:19 +02:00
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
2018-12-18 09:44:39 +01:00
%end if
2019-03-12 14:50:57 +01:00
# Si masteridentity est à SQL = où sont synchronisées les datas dans l'annuaire
2019-04-17 17:27:19 +02:00
%if %%getVar("ninegate_syncldap", 'non') == "oui"
2019-03-12 14:50:57 +01:00
ldap_sync: true
2019-06-04 09:24:42 +02:00
%else
ldap_sync: false
%end if
%if %%getVar("ninegate_test_conf_ldap", 'non') == "oui"
2019-04-17 17:27:19 +02:00
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
2019-03-12 14:50:57 +01:00
%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
2019-04-17 17:27:19 +02:00
%if %%getVar("ninegate_masteridentity", 'non') == "LDAP"
ldap_template: %%ninegate_ldaptemplate
%else
ldap_template: open
%end if
2019-03-12 14:50:57 +01:00
2019-06-21 10:52:22 +02:00
# Si masteridentity est à LDAP = quel champs sont à récupérer = faudrait templetiser dans genconfig
2019-03-12 14:50:57 +01:00
ldap_username: uid
ldap_firstname: givenname
ldap_lastname: sn
ldap_email: mail
2019-06-21 10:52:22 +02:00
ldap_usersadmin: [admin]
2019-03-12 14:50:57 +01:00
2019-06-04 15:05:41 +02:00
# 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
2019-06-13 13:15:55 +02:00
widlimesurvey_syncenvole: %%ninegate_widlimesurvey_syncenvole
2019-06-04 15:05:41 +02:00
%else
activate_widlimesurvey: false
%end if
2019-06-17 17:09:00 +02:00
%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
2019-06-21 10:52:22 +02:00
%if %%getVar("ninegate_activate_widopensondage", 'non') == "oui"
activate_widopensondage: true
widopensondage_url: %%ninegate_widopensondage_url
%else
2019-06-24 10:14:49 +02:00
activate_widopensondage: false
2019-06-21 10:52:22 +02:00
%end if
%if %%getVar("ninegate_activate_widpiwik", 'non') == "oui"
activate_widpiwik: true
widpiwik_url: %%ninegate_widpiwik_url
2019-06-21 14:40:21 +02:00
widpiwik_syncenvole: %%ninegate_widpiwik_syncenvole
2019-06-21 10:52:22 +02:00
%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
2019-06-17 17:09:00 +02:00
%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
2019-03-12 14:50:57 +01:00
# Si mode_auth = CAS
2019-04-08 10:16:07 +02:00
cas_host: %%eolesso_adresse
cas_path: %%eolesso_cas_folder
cas_port: %%eolesso_port
2019-03-12 14:50:57 +01:00
# 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
2019-04-17 17:27:19 +02:00
%if %%is_defined("ninegate_smtpport")
mailer_port: '%%ninegate_smtpport'
mailer_encryption: %%ninegate_smtpencryption
mailer_authmode: %%ninegate_smtpauthmode
noreply: %%ninegate_noreply
2018-12-18 09:44:39 +01:00
%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
orm:
default_entity_manager: default
entity_managers:
default:
connection: default
mappings:
CadolesCoreBundle: ~
2019-03-21 17:15:06 +01:00
CadolesCronBundle: ~
CadolesPortalBundle: ~
2019-07-16 12:10:32 +02:00
CadolesWebsocketBundle: ~
2018-12-18 09:44:39 +01:00