@@ -244,8 +244,8 @@ def __init__(self, hs: "HomeServer"):
244
244
self ._failed_uia_attempts_ratelimiter = Ratelimiter (
245
245
store = self .store ,
246
246
clock = self .clock ,
247
- rate_hz = self .hs .config .rc_login_failed_attempts .per_second ,
248
- burst_count = self .hs .config .rc_login_failed_attempts .burst_count ,
247
+ rate_hz = self .hs .config .ratelimiting . rc_login_failed_attempts .per_second ,
248
+ burst_count = self .hs .config .ratelimiting . rc_login_failed_attempts .burst_count ,
249
249
)
250
250
251
251
# The number of seconds to keep a UI auth session active.
@@ -255,14 +255,14 @@ def __init__(self, hs: "HomeServer"):
255
255
self ._failed_login_attempts_ratelimiter = Ratelimiter (
256
256
store = self .store ,
257
257
clock = hs .get_clock (),
258
- rate_hz = self .hs .config .rc_login_failed_attempts .per_second ,
259
- burst_count = self .hs .config .rc_login_failed_attempts .burst_count ,
258
+ rate_hz = self .hs .config .ratelimiting . rc_login_failed_attempts .per_second ,
259
+ burst_count = self .hs .config .ratelimiting . rc_login_failed_attempts .burst_count ,
260
260
)
261
261
262
262
self ._clock = self .hs .get_clock ()
263
263
264
264
# Expire old UI auth sessions after a period of time.
265
- if hs .config .run_background_tasks :
265
+ if hs .config .worker . run_background_tasks :
266
266
self ._clock .looping_call (
267
267
run_as_background_process ,
268
268
5 * 60 * 1000 ,
@@ -289,7 +289,7 @@ def __init__(self, hs: "HomeServer"):
289
289
hs .config .sso_account_deactivated_template
290
290
)
291
291
292
- self ._server_name = hs .config .server_name
292
+ self ._server_name = hs .config .server . server_name
293
293
294
294
# cast to tuple for use with str.startswith
295
295
self ._whitelisted_sso_clients = tuple (hs .config .sso_client_whitelist )
@@ -749,7 +749,7 @@ def _get_params_terms(self) -> dict:
749
749
"name" : self .hs .config .user_consent_policy_name ,
750
750
"url" : "%s_matrix/consent?v=%s"
751
751
% (
752
- self .hs .config .public_baseurl ,
752
+ self .hs .config .server . public_baseurl ,
753
753
self .hs .config .user_consent_version ,
754
754
),
755
755
},
@@ -1799,7 +1799,7 @@ def generate_delete_pusher_token(self, user_id: str) -> str:
1799
1799
1800
1800
def _generate_base_macaroon (self , user_id : str ) -> pymacaroons .Macaroon :
1801
1801
macaroon = pymacaroons .Macaroon (
1802
- location = self .hs .config .server_name ,
1802
+ location = self .hs .config .server . server_name ,
1803
1803
identifier = "key" ,
1804
1804
key = self .hs .config .macaroon_secret_key ,
1805
1805
)
0 commit comments