This commit is contained in:
naskya 2024-07-01 10:50:45 +09:00
parent 770b488a91
commit 97a7db1373
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -394,6 +394,12 @@ fn create_new_server_config(
None => None,
};
let summaly_proxy = meta.summaly_proxy.as_ref().map(|url| server::Proxy {
enabled: true,
url: url.to_owned(),
bypass_hosts: None,
});
let mut server_config = server::Config {
config_revision: Revision::V1,
server_info: Some(server::ServerInfo {
@ -430,7 +436,7 @@ fn create_new_server_config(
},
http_proxy,
media_proxy: todo!(),
summaly_proxy: todo!(),
summaly_proxy: summaly_proxy,
smtp_proxy: todo!(),
},
database: server::Database {