-
Notifications
You must be signed in to change notification settings - Fork 0
/
env
196 lines (162 loc) · 7.87 KB
/
env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
#--------------------------------------------------------------------
# Example Environment Configuration file
#
# This file can be used as a starting point for your own
# custom .env files, and contains most of the possible settings
# available in a default install.
#
# By default, all of the settings are commented out. If you want
# to override the setting, you must un-comment it by removing the '#'
# at the beginning of the line.
#--------------------------------------------------------------------
#--------------------------------------------------------------------
# ENVIRONMENT
# CI_ENVIRONMENT = production
# CI_ENVIRONMENT = development
#--------------------------------------------------------------------
CI_ENVIRONMENT = production
# disable totp identification in admin mode
# Only for first connection in development mode
Ppci\Config\IdentificationConfig.disableTotpToAdmin=0
#--------------------------------------------------------------------
# Ppci configuration
#--------------------------------------------------------------------
app.baseURL = 'https://sturwild.mysociety.com'
BASE_DIR = "/var/www/sturwildApp/sturwild"
FRONT_DIR = "${BASE_DIR}/public"
# If you have trouble with `.`, you could also use `_`.
app.CSPEnabled = false
# Duration of conservation of logs in table gacl.log
# logDuration = 365
# Duration of the session (4 hours)
session.expiration = 14400
#--------------------------------------------------------------------
# DATABASE with PPCI
#--------------------------------------------------------------------
database.default.hostname = localhost
database.default.database = sturwild
database.default.username = sturwild
database.default.password = sturwildPassword
database.default.DBDriver = Postgre
database.default.DBPrefix =
database.default.port = 5432
database.default.searchpath = sturwild,sturwildgacl,public
database.default.charset = utf8
# Ppci\Config\Ppci.language = fr
#--------------------------------------------------------------------
# Encryption
#--------------------------------------------------------------------
app.privateKey = "${BASE_DIR}/id_sturwild"
app.pubKey = "${BASE_DIR}/id_sturwild.pub"
#--------------------------------------------------------------------
# Ppci identification
#--------------------------------------------------------------------
# Identification mode
# BDD : logins in database
# LDAP : login in LDAP xxx
# CAS : use a CAS server
# HEADER : use the login transmitted by the web server (identification SAML with Mellon)
# LDAP-BDD : test first LDAP, then BDD
# CAS-BDD : a button to use CAS identification
# OIDC : OIDC identification
# OIDC-BDD : a button to use OIDC identification
Ppci\Config\IdentificationConfig.identificationMode = BDD
# APP_passwordMinLength = 12
# List of parameters to use SAML identification with apache2-mellon
#
# Ppci\Config\IdentificationConfig.HEADER.login = 'MELLON_MAIL'
# Ppci\Config\IdentificationConfig.HEADER.email = 'MELLON_MAIL'
# Ppci\Config\IdentificationConfig.HEADER.name = 'MELLON_CN'
# Ppci\Config\IdentificationConfig.HEADER.firstname = 'MELLON_GIVENNAME'
# Ppci\Config\IdentificationConfig.HEADER.lastname = 'MELLON_SN'
# Ppci\Config\IdentificationConfig.HEADER.organization = 'MELLON_SHACHOMEORGANIZATION'
# Organizations granted for Header connection
# each organization must be separated by a comma
# Ppci\Config\IdentificationConfig.organizationGranted =
# Groups that users are automatically activated
# each group must be separated by a comma
# Ppci\Config\IdentificationConfig\groupsGranted =
# CAS parameters
# Ppci\Config\IdentificationConfig.CAS.address = "address.without.https"
# Ppci\Config\IdentificationConfig.CAS.uri = "/cas"
# Ppci\Config\IdentificationConfig.CAS.Port = 443
# Ppci\Config\IdentificationConfig.CAS.debug = false
# Ppci\Config\IdentificationConfig.CAS.getGroups = 1
# Ppci\Config\IdentificationConfig.CAS.groups = "supannEntiteAffectation"
# Ppci\Config\IdentificationConfig.CAS.email = 'mail'
# Ppci\Config\IdentificationConfig.CAS.name = 'cn'
# Ppci\Config\IdentificationConfig.CAS.firstname = 'givenName'
# Ppci\Config\IdentificationConfig.CAS.lastname = 'sn'
# OIDC parameters
# Ppci\Config\IdentificationConfig.OIDC.name = INRAE
# Ppci\Config\IdentificationConfig.OIDC.provider =
# Ppci\Config\IdentificationConfig.OIDC.clientId =
# Ppci\Config\IdentificationConfig.OIDC.clientSecret =
# Ppci\Config\IdentificationConfig.OIDC.email = 'email'
# Ppci\Config\IdentificationConfig.OIDC.name = 'name'
# Ppci\Config\IdentificationConfig.OIDC.firstname = 'given_name'
# Ppci\Config\IdentificationConfig.OIDC.lastname = 'family_name'
# Ppci\Config\IdentificationConfig.OIDC.groups = "supannEntiteAffectationPrincipale"
# Logo displayed on the button for CAS or OIDC
Ppci\Config\IdentificationConfig.identificationLogo = "${FRONT_DIR}/favicon.png"
# Ppci\Config\IdentificationConfig.CONNECTION_max_attempts = 5
# Ppci\Config\IdentificationConfig.CAS.CONNECTION_blocking_duration = 600
# Time to resend an email to the administrator if an account is blocked
# Ppci\Config\IdentificationConfig.CAS.APPLI_maiToAdminPeriod = 7200
# Maximum period of inactivity for accessing an administration module
# Ppci\Config\IdentificationConfig.CAS.APPLI_admin_ttl = 600
# Ppci\Config\IdentificationConfig.CAS.APPLI_passwordMinLength = 12
# If set to 1, authorises recovery of a new password in the event of loss
# Ppci\Config\IdentificationConfig.CAS.APPLI_lostPassword = 1
# LDAP parameters
# Ppci\Config\IdentificationConfig.LDAP.address =
# Ppci\Config\IdentificationConfig.LDAP.port = 389
# Ppci\Config\IdentificationConfig.LDAP.rdn = "cn=manager,dc=example,dc=com"
# Ppci\Config\IdentificationConfig.LDAP.basedn = "ou=people,ou=example,o=societe,c=fr"
# Ppci\Config\IdentificationConfig.LDAP.user_attrib = "uid"
# Ppci\Config\IdentificationConfig.LDAP.v3 = true
# Ppci\Config\IdentificationConfig.LDAP.tls = false
# Ppci\Config\IdentificationConfig.LDAP.upn_suffix =
# Ppci\Config\IdentificationConfig.LDAP.groupSupport = false
# Ppci\Config\IdentificationConfig.LDAP.commonNameAttribute = "displayname"
# Ppci\Config\IdentificationConfig.LDAP.mailAttribute = "mail"
# Ppci\Config\IdentificationConfig.LDAP.groupnameAttribute = "cn"
# Ppci\Config\IdentificationConfig.LDAP.loginnameAttribute = "memberuid"
# Ppci\Config\IdentificationConfig.LDAP.basedngroup = 'ou=example,o=societe,c=fr'
# Ppci\Config\IdentificationConfig.LDAP.timeout = 2
# Ppci\Config\IdentificationConfig.LDAP.ldapnoanonymous = false
# Ppci\Config\IdentificationConfig.LDAP.ldaplogin =
# Ppci\Config\IdentificationConfig.LDAP.ldappassword =
#--------------------------------------------------------------------
# Ppci Rights
#--------------------------------------------------------------------
# Name of the application in the right module
# app.GACL_aco = app
# Set 1 to disable the creation of new rights in table aclaco
#
# Ppci\Config\Rights.GACL_disable_new_right = 1
#--------------------------------------------------------------------
# Ppci OSM cache
#--------------------------------------------------------------------
# Ppci\Config\OsmMap.mapSeedMinZoom = 12
# Ppci\Config\OsmMap.mapSeedMaxZoom = 16
# Ppci\Config\OsmMap.mapSeedMaxAge = 120
# Ppci\Config\OsmMap.mapCacheMaxAge = 10368000000
#--------------------------------------------------------------------
# Ppci miscellaneous
#--------------------------------------------------------------------
# Max duration of a session
#APPLI_absolute_session = 36000
#--------------------------------------------------------------------
# LOGGER
#--------------------------------------------------------------------
logger.threshold = 4
#--------------------------------------------------------------------
# PPCI MAILS
#--------------------------------------------------------------------
# APP_mail = [email protected]
# MAIL_enabled = 1
# MAIL_param.from = [email protected]
# MAIL_param.mailDebug = 0
# Duration before resend a mail to administrators for the same event (in seconds)
# APP_mailToAdminPeriod = 7200