svg
This commit is contained in:
148
src/ninegate-1.0/app/config/config.yml
Normal file
148
src/ninegate-1.0/app/config/config.yml
Normal file
@ -0,0 +1,148 @@
|
||||
imports:
|
||||
- { resource: parameters.yml }
|
||||
- { resource: template.yml }
|
||||
- { resource: security.yml }
|
||||
- { resource: services.yml }
|
||||
- { resource: "@CadolesCoreBundle/Resources/config/services.yml" }
|
||||
- { resource: "@CadolesPortalBundle/Resources/config/services.yml" }
|
||||
- { resource: twig.yml }
|
||||
|
||||
# Put parameters here that don't need to change on each machine where the app is deployed
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
||||
parameters:
|
||||
locale: fr
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: rotating_file
|
||||
path: '%kernel.logs_dir%/%kernel.environment%.log'
|
||||
level: debug
|
||||
max_files: 10
|
||||
|
||||
framework:
|
||||
#esi: ~
|
||||
#translator: { fallbacks: ['%locale%'] }
|
||||
secret: '%secret%'
|
||||
router:
|
||||
resource: '%kernel.project_dir%/app/config/routing.yml'
|
||||
strict_requirements: ~
|
||||
form: ~
|
||||
csrf_protection: ~
|
||||
validation: { enabled: true, enable_annotations: true }
|
||||
#serializer: { enable_annotations: true }
|
||||
default_locale: '%locale%'
|
||||
trusted_hosts: ~
|
||||
session:
|
||||
# https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
|
||||
handler_id: session.handler.native_file
|
||||
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
|
||||
fragments: ~
|
||||
http_method_override: true
|
||||
templating:
|
||||
engines: ['twig']
|
||||
assets: ~
|
||||
php_errors:
|
||||
log: true
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: '%kernel.debug%'
|
||||
strict_variables: '%kernel.debug%'
|
||||
form_themes:
|
||||
- 'CadolesCoreBundle:Form:fields.html.twig'
|
||||
- 'TetranzSelect2EntityBundle:Form:fields.html.twig'
|
||||
paths:
|
||||
'%kernel.project_dir%/src/Cadoles/CoreBundle/Resources/public/themes/': Theme
|
||||
|
||||
# Swiftmailer Configuration
|
||||
swiftmailer:
|
||||
transport: '%mailer_transport%'
|
||||
host: '%mailer_host%'
|
||||
port: '%mailer_port%'
|
||||
username: '%mailer_user%'
|
||||
password: '%mailer_password%'
|
||||
auth_mode: '%mailer_authmode%'
|
||||
encryption: '%mailer_encryption%'
|
||||
stream-options:
|
||||
ssl:
|
||||
allow_self_signed : true
|
||||
verify_peer: false
|
||||
spool:
|
||||
type: file
|
||||
path: '%kernel.project_dir%/var/spoolmail'
|
||||
|
||||
# Assetic Configuration
|
||||
assetic:
|
||||
debug: "%kernel.debug%"
|
||||
use_controller: false
|
||||
filters:
|
||||
cssrewrite: ~
|
||||
|
||||
# onupload configuration
|
||||
oneup_uploader:
|
||||
mappings:
|
||||
avatar:
|
||||
frontend: dropzone # or any uploader you use in the frontend
|
||||
logo:
|
||||
frontend: dropzone # or any uploader you use in the frontend
|
||||
header:
|
||||
frontend: dropzone # or any uploader you use in the frontend
|
||||
icon:
|
||||
frontend: dropzone # or any uploader you use in the frontend
|
||||
slide:
|
||||
frontend: dropzone # or any uploader you use in the frontend
|
||||
blogarticle:
|
||||
frontend: dropzone # or any uploader you use in the frontend
|
||||
file:
|
||||
frontend: dropzone # or any uploader you use in the frontend
|
||||
namer: cadoles.core.upload.namer.same
|
||||
storage:
|
||||
directory: "%kernel.root_dir%/../uploads/file"
|
||||
|
||||
# gregwar captcha configuration
|
||||
gregwar_captcha: ~
|
||||
|
||||
# light_saml configuration
|
||||
light_saml_symfony_bridge:
|
||||
own:
|
||||
entity_id: '%saml_entityid%'
|
||||
credentials:
|
||||
-
|
||||
certificate: "%kernel.root_dir%/../vendor/lightsaml/lightsaml/web/sp/saml.crt"
|
||||
key: "%kernel.root_dir%/../vendor/lightsaml/lightsaml/web/sp/saml.key"
|
||||
password: ~
|
||||
party:
|
||||
idp:
|
||||
files: '%saml_idps_list%'
|
||||
|
||||
# ckeditor configuration
|
||||
ivory_ck_editor:
|
||||
base_path: "ckeditor"
|
||||
js_path: "ckeditor/ckeditor.js"
|
||||
configs:
|
||||
full_config:
|
||||
language: fr
|
||||
toolbar: "my_toolbar_1"
|
||||
uiColor: "#ffffff"
|
||||
light_config:
|
||||
language: fr
|
||||
toolbar: "my_toolbar_2"
|
||||
uiColor: "#ffffff"
|
||||
toolbars:
|
||||
configs:
|
||||
my_toolbar_1: [ "@document1", "-", "@clipboard1", "-", "@basicstyles1", "-", "@paragraph1", "/", "@links1", "-", "@insert1", "-", "@styles1", "-" , "@colors1", "-" , "@tools1" ]
|
||||
my_toolbar_2: [ "@basicstyles1", "-", "@paragraph2", "-", "@insert2", "-", "@styles1"]
|
||||
|
||||
items:
|
||||
document1: [ 'Source','-','NewPage','DocProps','Preview','Print','-','Templates' ]
|
||||
clipboard1: [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ]
|
||||
basicstyles1: [ 'Bold','Italic','Underline','RemoveFormat' ]
|
||||
paragraph1: [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ]
|
||||
paragraph2: [ 'JustifyLeft','JustifyCenter','JustifyRight','NumberedList','BulletedList' ]
|
||||
links1: [ 'Link','Unlink','Anchor' ]
|
||||
insert1: [ 'Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ]
|
||||
insert2: [ 'Image','Table','Smiley','Link','Unlink' ]
|
||||
styles1: [ 'Styles','Format','Font','FontSize' ]
|
||||
colors1: [ 'TextColor','BGColor' ]
|
||||
tools1: [ 'Maximize', 'ShowBlocks','-','About' ]
|
41
src/ninegate-1.0/app/config/config_dev.yml
Normal file
41
src/ninegate-1.0/app/config/config_dev.yml
Normal file
@ -0,0 +1,41 @@
|
||||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
framework:
|
||||
router:
|
||||
resource: '%kernel.project_dir%/app/config/routing_dev.yml'
|
||||
strict_requirements: true
|
||||
profiler: { only_exceptions: false }
|
||||
|
||||
web_profiler:
|
||||
toolbar: true
|
||||
intercept_redirects: false
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: '%kernel.logs_dir%/%kernel.environment%.log'
|
||||
level: debug
|
||||
channels: ['!event']
|
||||
console:
|
||||
type: console
|
||||
process_psr_3_messages: false
|
||||
channels: ['!event', '!doctrine', '!console']
|
||||
# To follow logs in real time, execute the following command:
|
||||
# `bin/console server:log -vv`
|
||||
server_log:
|
||||
type: server_log
|
||||
process_psr_3_messages: false
|
||||
host: 127.0.0.1:9911
|
||||
# uncomment to get logging in your browser
|
||||
# you may have to allow bigger header sizes in your Web server configuration
|
||||
#firephp:
|
||||
# type: firephp
|
||||
# level: info
|
||||
#chromephp:
|
||||
# type: chromephp
|
||||
# level: info
|
||||
|
||||
#swiftmailer:
|
||||
# delivery_addresses: ['me@example.com']
|
22
src/ninegate-1.0/app/config/config_prod.yml
Normal file
22
src/ninegate-1.0/app/config/config_prod.yml
Normal file
@ -0,0 +1,22 @@
|
||||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
#doctrine:
|
||||
# orm:
|
||||
# metadata_cache_driver: apc
|
||||
# result_cache_driver: apc
|
||||
# query_cache_driver: apc
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: fingers_crossed
|
||||
action_level: error
|
||||
handler: nested
|
||||
nested:
|
||||
type: stream
|
||||
path: '%kernel.logs_dir%/%kernel.environment%.log'
|
||||
level: debug
|
||||
console:
|
||||
type: console
|
||||
process_psr_3_messages: false
|
16
src/ninegate-1.0/app/config/config_test.yml
Normal file
16
src/ninegate-1.0/app/config/config_test.yml
Normal file
@ -0,0 +1,16 @@
|
||||
imports:
|
||||
- { resource: config_dev.yml }
|
||||
|
||||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
||||
profiler:
|
||||
collect: false
|
||||
|
||||
web_profiler:
|
||||
toolbar: false
|
||||
intercept_redirects: false
|
||||
|
||||
swiftmailer:
|
||||
disable_delivery: true
|
19
src/ninegate-1.0/app/config/parameters.yml.dist
Normal file
19
src/ninegate-1.0/app/config/parameters.yml.dist
Normal file
@ -0,0 +1,19 @@
|
||||
# This file is a "template" of what your parameters.yml file should look like
|
||||
# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production.
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
|
||||
parameters:
|
||||
database_host: 127.0.0.1
|
||||
database_port: ~
|
||||
database_name: symfony
|
||||
database_user: root
|
||||
database_password: ~
|
||||
# You should uncomment this if you want to use pdo_sqlite
|
||||
#database_path: '%kernel.project_dir%/var/data/data.sqlite'
|
||||
|
||||
mailer_transport: smtp
|
||||
mailer_host: 127.0.0.1
|
||||
mailer_user: ~
|
||||
mailer_password: ~
|
||||
|
||||
# A secret key that's used to generate certain security-related tokens
|
||||
secret: ThisTokenIsNotSoSecretChangeIt
|
23
src/ninegate-1.0/app/config/routing.yml
Normal file
23
src/ninegate-1.0/app/config/routing.yml
Normal file
@ -0,0 +1,23 @@
|
||||
core:
|
||||
resource: "@CadolesCoreBundle/Resources/config/routing.yml"
|
||||
prefix: /
|
||||
|
||||
cron:
|
||||
resource: "@CadolesCronBundle/Resources/config/routing.yml"
|
||||
prefix: /
|
||||
|
||||
portal:
|
||||
resource: "@CadolesPortalBundle/Resources/config/routing.yml"
|
||||
prefix: /
|
||||
|
||||
lightsaml_sp:
|
||||
resource: "@LightSamlSpBundle/Resources/config/routing.yml"
|
||||
prefix: saml
|
||||
|
||||
cas_sp:
|
||||
resource: "@CadolesCASBundle/Resources/config/routing.yml"
|
||||
prefix: cas
|
||||
|
||||
oneup_uploader:
|
||||
resource: .
|
||||
type: uploader
|
14
src/ninegate-1.0/app/config/routing_dev.yml
Normal file
14
src/ninegate-1.0/app/config/routing_dev.yml
Normal file
@ -0,0 +1,14 @@
|
||||
_wdt:
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
|
||||
prefix: /_wdt
|
||||
|
||||
_profiler:
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
|
||||
prefix: /_profiler
|
||||
|
||||
_errors:
|
||||
resource: '@TwigBundle/Resources/config/routing/errors.xml'
|
||||
prefix: /_error
|
||||
|
||||
_main:
|
||||
resource: routing.yml
|
55
src/ninegate-1.0/app/config/security.yml
Normal file
55
src/ninegate-1.0/app/config/security.yml
Normal file
@ -0,0 +1,55 @@
|
||||
security:
|
||||
providers:
|
||||
cadoles_core_db_provider:
|
||||
entity:
|
||||
class: CadolesCoreBundle:User
|
||||
property: username
|
||||
|
||||
encoders:
|
||||
Cadoles\CoreBundle\Entity\User:
|
||||
id: cadoles.core.password.encoder
|
||||
Cadoles\CoreBundle\Entity\Registration:
|
||||
id: cadoles.core.password.encoder
|
||||
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
|
||||
main:
|
||||
provider: cadoles_core_db_provider
|
||||
anonymous: ~
|
||||
|
||||
form_login:
|
||||
login_path: cadoles_core_login
|
||||
check_path: cadoles_core_login
|
||||
use_referer: true
|
||||
target_path_parameter: cadoles_core_home
|
||||
csrf_parameter: _csrf_security_token
|
||||
csrf_token_id: a_private_string
|
||||
|
||||
logout:
|
||||
invalidate_session: true
|
||||
path: cadoles_core_kill
|
||||
target: cadoles_core_home
|
||||
|
||||
light_saml_sp:
|
||||
provider: cadoles_core_db_provider
|
||||
user_creator: cadoles.saml_user_creator
|
||||
username_mapper: cadoles.saml_user_mapper
|
||||
login_path: /saml/login
|
||||
check_path: /saml/acs
|
||||
|
||||
access_control:
|
||||
- { path: ^/user, roles: [ROLE_ADMIN, ROLE_MODO, ROLE_USER] }
|
||||
- { path: ^/config/home, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config/niveau02, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config/group, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config/registration, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config/user, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config/icon, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config/item, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config/alert, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config/page, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||
- { path: ^/config, roles: [ROLE_ADMIN] }
|
||||
|
35
src/ninegate-1.0/app/config/services.yml
Normal file
35
src/ninegate-1.0/app/config/services.yml
Normal file
@ -0,0 +1,35 @@
|
||||
# Learn more about services, parameters and containers at
|
||||
# https://symfony.com/doc/current/service_container.html
|
||||
parameters:
|
||||
#parameter_name: value
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
# automatically injects dependencies in your services
|
||||
autowire: true
|
||||
# automatically registers your services as commands, event subscribers, etc.
|
||||
autoconfigure: true
|
||||
# this means you cannot fetch services directly from the container via $container->get()
|
||||
# if you need to do this, you can override this setting on individual services
|
||||
public: false
|
||||
|
||||
# makes classes in src/AppBundle available to be used as services
|
||||
# this creates a service per class whose id is the fully-qualified class name
|
||||
AppBundle\:
|
||||
resource: '../../src/AppBundle/*'
|
||||
# you can exclude directories or files
|
||||
# but if a service is unused, it's removed anyway
|
||||
exclude: '../../src/AppBundle/{Entity,Repository,Tests}'
|
||||
|
||||
# controllers are imported separately to make sure they're public
|
||||
# and have a tag that allows actions to type-hint services
|
||||
AppBundle\Controller\:
|
||||
resource: '../../src/AppBundle/Controller'
|
||||
public: true
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
# add more services, or override services that need manual wiring
|
||||
# AppBundle\Service\ExampleService:
|
||||
# arguments:
|
||||
# $someArgument: 'some_value'
|
127
src/ninegate-1.0/app/config/template.yml
Normal file
127
src/ninegate-1.0/app/config/template.yml
Normal file
@ -0,0 +1,127 @@
|
||||
# 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: LDAP
|
||||
|
||||
# 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: CAS
|
||||
|
||||
# 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
|
||||
moderegistration: none
|
||||
|
||||
# Activation module
|
||||
cron_activate: true
|
||||
portal_activate: true
|
||||
|
||||
# Information de base de l'annuaire
|
||||
ldap_host: 127.0.0.1
|
||||
ldap_port: 389
|
||||
ldap_user: cn=admin,o=gouv,c=fr
|
||||
ldap_password: eole
|
||||
ldap_basedn: o=gouv,c=fr
|
||||
|
||||
# Mise en page
|
||||
alias: cadolesuser
|
||||
libelle_etab: ldapbundle
|
||||
numero_etab: 0000000A
|
||||
colormain: 2c3e50 # Couleur principale
|
||||
fontcolorhover: FFFFFF # Couleur des polices sur fond de couleur principale
|
||||
keyterm: 8 # Taille mini du password
|
||||
labelniveau01: Ecole # Label singulier du niveau 01 d'organisation
|
||||
labelsniveau01: Ecoles # Label pluriel du niveau 01 d'organisation
|
||||
iconniveau01: fa-building # Icon du niveau 01 d'organisation
|
||||
labelsirenniveau01: SIREN # Label SIREN
|
||||
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
|
||||
|
||||
# Si masteridentity est à SQL = où sont synchronisées les datas dans l'annuaire
|
||||
ldap_sync: false
|
||||
ldap_baseuser:
|
||||
ldap_baseniveau01:
|
||||
ldap_baseniveau02:
|
||||
ldap_basegroup:
|
||||
|
||||
# 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
|
||||
ldap_template: scribe
|
||||
|
||||
# Si masteridentity est à LDAP = quel champs sont à récupérer
|
||||
ldap_username: uid
|
||||
ldap_firstname: givenname
|
||||
ldap_lastname: sn
|
||||
ldap_email: mail
|
||||
ldap_usersadmin: [admin,prof.6a]
|
||||
|
||||
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"
|
||||
|
||||
# Si mode_auth = CAS
|
||||
cas_host: ldapbundle.ac-arno.fr
|
||||
cas_path:
|
||||
cas_port: 8443
|
||||
|
||||
# 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
|
||||
|
||||
mailer_port: '2525'
|
||||
mailer_encryption: null
|
||||
mailer_authmode: null
|
||||
noreply: noreply@ldapbundle.ac-arno.fr
|
||||
|
||||
# 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: ~
|
||||
CadolesCronBundle: ~
|
||||
CadolesPortalBundle: ~
|
||||
|
||||
|
18
src/ninegate-1.0/app/config/twig.yml
Normal file
18
src/ninegate-1.0/app/config/twig.yml
Normal file
@ -0,0 +1,18 @@
|
||||
# Parametres spécifiques à eportail
|
||||
twig:
|
||||
globals:
|
||||
alias: %alias%
|
||||
|
||||
masteridentity: %masteridentity%
|
||||
mode_auth: %mode_auth%
|
||||
|
||||
eportail_sync: %eportail_sync%
|
||||
moderegistration: %moderegistration%
|
||||
labelniveau01: %labelniveau01%
|
||||
labelsniveau01: %labelsniveau01%
|
||||
iconniveau01: %iconniveau01%
|
||||
viewniveau02: %viewniveau02%
|
||||
labelniveau02: %labelniveau02%
|
||||
labelsniveau02: %labelsniveau02%
|
||||
iconniveau02: %iconniveau02%
|
||||
keyterm: %keyterm%
|
Reference in New Issue
Block a user