1
+ http :
2
+ listeners :
3
+ - name : web
4
+ resources :
5
+ - name : discovery
6
+ - name : human
7
+ - name : oauth
8
+ - name : compat
9
+ - name : graphql
10
+ - name : assets
11
+ # for api admin calls
12
+ - name : adminapi
13
+ binds :
14
+ - address : ' [::]:8080'
15
+ proxy_protocol : false
16
+ - name : internal
17
+ resources :
18
+ - name : health
19
+ # for api admin calls
20
+ - name : adminapi
21
+ binds :
22
+ - host : localhost
23
+ port : 8081
24
+ proxy_protocol : false
25
+ trusted_proxies :
26
+ - 192.168.0.0/16
27
+ - 172.16.0.0/12
28
+ - 10.0.0.0/10
29
+ - 127.0.0.1/8
30
+ - fd00::/8
31
+ - ::1/128
32
+ # public_base: http://[::]:8080/
33
+ # issuer: http://[::]:8080/
34
+ public_base : https://auth.tchapgouv.com/
35
+ issuer : https://auth.tchapgouv.com/
36
+ database :
37
+ uri : postgresql://postgres:postgres@localhost:5439/postgres
38
+ max_connections : 10
39
+ min_connections : 0
40
+ connect_timeout : 30
41
+ idle_timeout : 600
42
+ max_lifetime : 1800
43
+ email :
44
+ from :
' "Authentication Service" <[email protected] >'
45
+ reply_to :
' "Authentication Service" <[email protected] >'
46
+ transport : smtp
47
+ mode : plain
48
+ hostname : 127.0.0.1
49
+ port : 1025
50
+
51
+ secrets :
52
+ encryption : eb38b8b9087842b3345269f3c6ca92b2a8d6aa63e3a773d23ed1c9cb45c5ef83
53
+ keys :
54
+ - kid : dyrZtIyXSA
55
+ key : |
56
+ -----BEGIN RSA PRIVATE KEY-----
57
+ MIIEogIBAAKCAQEAukLyWSv9KOeBsmIG4ntL/BP+wj5L4GbOyAOEzRBBO0ZbBYVn
58
+ 1L/aYQ65cQpQKK0MzH5cn7TvIY0JBh/ZsSm3e7DdhGJzoqPrW6E0/6QqXEl4gN1q
59
+ DUCMj2CwAcT9OX1Wt6cNq70+gbqp6+yT+Nn++KPylHa/V9wRxkaV3fyM+XYVeddB
60
+ amDR+fBjHgVXQ3xk2ezUBS3AmyKBgETnHufK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KBgDzV335dQZ6nsXz0quPScfZ/qJqyo+gledPLkvXn
77
+ EG35+f2ads1hSN95BmLQRUPt3gXHJlpbXONQAFQ5MHGf9MV7KpmIrlCxMJW5fgm8
78
+ D66T9p8UyTNKqGWLcff7tqrpxkV0PnOZEg+zP4htlUOIi9J1EFjAiYxeEygw4pPd
79
+ yuNzAoGAI0lLE32iIm+j5byFCKRuS6cQmDBzUJxZiCuLsuZEINYdz2nxKZqd9VtA
80
+ rOXzo8vJuGLF1hjf1/C66F3EnPxcclPL10vLCE8RbfQYVwBxw7MG9BLJXIlMjb2V
81
+ 7CjVDE4Gaa96tChg1pepuJcOEuWez3o3Ard9oZ4Z9sm7VJzmuoY=
82
+ -----END RSA PRIVATE KEY-----
83
+ - kid : O1hkajPW2v
84
+ key : |
85
+ -----BEGIN EC PRIVATE KEY-----
86
+ MHcCAQEEINsgMBFDIrIzqOIWuR94TCi5MTH1FS8wfgatu9BsO2jVoAoGCCqGSM49
87
+ AwEHoUQDQgAEldEtvZaXtblpUdHpKKQiH7z9ADC55H0yrCYyQsLXbt14lI2NuseX
88
+ MWsvSLBzkbEetDxkmKh0bhOfrdwv9x5SwA==
89
+ -----END EC PRIVATE KEY-----
90
+ - kid : 2nhe3z2925
91
+ key : |
92
+ -----BEGIN EC PRIVATE KEY-----
93
+ MIGkAgEBBDDTVngHypOwUnPOGXeskQJhdSLLPBCM+mkSvzr2SZ7Kjm3hftvs2s7J
94
+ gZBOZwXyoaKgBwYFK4EEACKhZANiAAQ3WGOQs3EqO2x4X7PBWs6Lw3qdmRLHqblc
95
+ Zplh3wYPDOoUMvD99Snxz43t5sK6kphLBL262/srx/UPT1McLUxBMlBvBUbBEKHX
96
+ a8icrL13yIwflquj0EHrE7czFJw1txs=
97
+ -----END EC PRIVATE KEY-----
98
+ - kid : 50aRR3QVqx
99
+ key : |
100
+ -----BEGIN EC PRIVATE KEY-----
101
+ MHQCAQEEIN8bErXY1sWEJ1y9KoYcpcUImIjpS/ay3pEugYPfr3Y/oAcGBSuBBAAK
102
+ oUQDQgAEMHcshHVFbMSEyyt3ptIdAhnrg+XlQskZ33hZvdtzm6I0wW8H8zslMp+I
103
+ t0KYCeIQ7HTPtgJAOsKxEPBfmVXZmA==
104
+ -----END EC PRIVATE KEY-----
105
+ passwords :
106
+ enabled : true
107
+ schemes :
108
+ - version : 1
109
+ algorithm : bcrypt
110
+ secret : " secret01"
111
+ - version : 2
112
+ algorithm : argon2id
113
+ minimum_complexity : 3
114
+ matrix :
115
+ homeserver : tchapgouv.com
116
+ # TODO copy from element-docker-demo/data/mas/config.yaml
117
+ secret : ' TO BE COPY'
118
+ endpoint : https://matrix.tchapgouv.com/
119
+
120
+ clients :
121
+ - client_id : 0000000000000000000SYNAPSE
122
+ client_auth_method : client_secret_basic
123
+ client_secret : ' /DjWc4D3yyqgjYN8tum65g'
124
+
125
+ # for api admin calls
126
+ - client_id : 01J44RKQYM4G3TNVANTMTDYTX6
127
+ client_auth_method : client_secret_basic
128
+ client_secret : phoo8ahneir3ohY2eigh4xuu6Oodaewi
129
+
130
+
131
+ policy :
132
+ data :
133
+ admin_clients :
134
+ # for api admin calls
135
+ - 01J44RKQYM4G3TNVANTMTDYTX6
136
+ client_registration :
137
+ allow_insecure_uris : true
138
+ allow_host_mismatch : true
139
+
140
+ account :
141
+ # Whether users are allowed to change their email addresses.
142
+ #
143
+ # Defaults to `true`.
144
+ email_change_allowed : false
145
+
146
+ # Whether users are allowed to change their display names
147
+ #
148
+ # Defaults to `true`.
149
+ # This should be in sync with the policy in the homeserver configuration.
150
+ displayname_change_allowed : false
151
+
152
+ # Whether to enable self-service password registration
153
+ #
154
+ # Defaults to `false`.
155
+ # This has no effect if password login is disabled.
156
+ password_registration_enabled : true
157
+
158
+ # Whether users are allowed to change their passwords
159
+ #
160
+ # Defaults to `true`.
161
+ # This has no effect if password login is disabled.
162
+ password_change_allowed : true
163
+
164
+ # Whether email-based password recovery is enabled
165
+ #
166
+ # Defaults to `false`.
167
+ # This has no effect if password login is disabled.
168
+ password_recovery_enabled : true
169
+
170
+ # Whether users can log in with their email address.
171
+ #
172
+ # Defaults to `false`.
173
+ # This has no effect if password login is disabled.
174
+ login_with_email_allowed : true
175
+
176
+ templates :
177
+ # From where to load the templates
178
+ # This is relative to the current working directory, *not* the config file
179
+ path : " WILL BE REPLACED BY build_conf.sh"
180
+
181
+ # Path to the frontend assets manifest file
182
+ # assets_manifest: "/to/manifest.json"
183
+
184
+ # # From where to load the translation files
185
+ # # Default in Docker distribution: `/usr/local/share/mas-cli/translations/`
186
+ # # Default in pre-built binaries: `./share/translations/`
187
+ # # Default in locally-built binaries: `./translations/`
188
+ translations_path : " WILL BE REPLACED BY build_conf.sh"
189
+
190
+ upstream_oauth2 :
191
+ providers :
192
+ - id : " 01JK5MR1SD21MAQY4PWMFG283W"
193
+ human_name : Proconnect (mock)
194
+ issuer : " https://sso.tchapgouv.com/realms/proconnect-mock"
195
+ token_endpoint_auth_method : client_secret_basic
196
+ client_id : " matrix-authentication-service"
197
+ client_secret : " HrJ1NZ0AbkHuWWjyRHh7X2lzn3S8eagt"
198
+ scope : " openid profile email"
199
+ claims_imports :
200
+ localpart :
201
+ action : force
202
+ # template: "{{ user.preferred_username }}"
203
+ on_conflict : add
204
+ # action: require
205
+ template : " {{ user.email | email_to_mxid_localpart }}"
206
+ displayname :
207
+ action : require
208
+ # template: "{{ user.name }}"
209
+ template : " {{ user.email | email_to_display_name }}"
210
+ email :
211
+ action : require
212
+ template : " {{ user.email }}"
213
+ set_email_verification : always
214
+
215
+ telemetry :
216
+ tracing :
217
+ # # List of propagators to use for extracting and injecting trace contexts
218
+ # propagators:
219
+ # # Propagate according to the W3C Trace Context specification
220
+ # - tracecontext
221
+ # # Propagate according to the W3C Baggage specification
222
+ # - baggage
223
+ # # Propagate trace context with Jaeger compatible headers
224
+ # - jaeger
225
+
226
+ # # The default: don't export traces
227
+ exporter : none
228
+
229
+ # Export traces to an OTLP-compatible endpoint
230
+ # exporter: otlp
231
+ # endpoint: https://localhost:4318
232
+ metrics :
233
+ # The default: don't export metrics
234
+ exporter : none
235
+
236
+ # Export metrics to an OTLP-compatible endpoint
237
+ # exporter: otlp
238
+ # endpoint: https://localhost:4317
239
+
240
+ # Export metrics by exposing a Prometheus endpoint
241
+ # This requires mounting the `prometheus` resource to an HTTP listener
242
+ # exporter: prometheus
243
+
244
+ # sentry:
245
+ # # DSN to use for sending errors and crashes to Sentry
246
+ # dsn: https://public@host:port/1
247
+
248
+ tchap :
249
+ identity_server_url : " http://localhost:8083"
250
+ email_lookup_fallback_rules :
251
+ # match : the new email pattern
252
+ # search : the old email pattern
253
+ # old email in mail.numerique.gouv.fr
254
+ - match_with : ' @numerique.gouv.fr'
255
+ search : ' @beta.gouv.fr'
0 commit comments