@@ -9,8 +9,8 @@ use std::{sync::Arc, time::Duration};
9
9
use anyhow:: Context ;
10
10
use mas_config:: {
11
11
AccountConfig , BrandingConfig , CaptchaConfig , DatabaseConfig , EmailConfig , EmailSmtpMode ,
12
- EmailTransportKind , ExperimentalConfig , HomeserverKind , MatrixConfig , PasswordsConfig ,
13
- PolicyConfig , TemplatesConfig ,
12
+ EmailTransportKind , ExperimentalConfig , HomeserverKind , HttpConfig , MatrixConfig ,
13
+ PasswordsConfig , PolicyConfig , TemplatesConfig ,
14
14
} ;
15
15
use mas_data_model:: { SessionExpirationConfig , SiteConfig } ;
16
16
use mas_email:: { MailTransport , Mailer } ;
@@ -183,6 +183,7 @@ pub fn site_config_from_config(
183
183
password_config : & PasswordsConfig ,
184
184
account_config : & AccountConfig ,
185
185
captcha_config : & CaptchaConfig ,
186
+ http_config : & HttpConfig ,
186
187
) -> Result < SiteConfig , anyhow:: Error > {
187
188
let captcha = captcha_config_from_config ( captcha_config) ?;
188
189
let session_expiration = experimental_config
@@ -198,6 +199,7 @@ pub fn site_config_from_config(
198
199
access_token_ttl : experimental_config. access_token_ttl ,
199
200
compat_token_ttl : experimental_config. compat_token_ttl ,
200
201
server_name : matrix_config. homeserver . clone ( ) ,
202
+ public_base : http_config. public_base . clone ( ) ,
201
203
policy_uri : branding_config. policy_uri . clone ( ) ,
202
204
tos_uri : branding_config. tos_uri . clone ( ) ,
203
205
imprint : branding_config. imprint . clone ( ) ,
0 commit comments