From 97a7db1373df82d7ebdc94c5aaace86514f8d101 Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 1 Jul 2024 10:50:45 +0900 Subject: [PATCH] WIP --- fishctl/src/command/config/update/v1.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fishctl/src/command/config/update/v1.rs b/fishctl/src/command/config/update/v1.rs index 54e2fcf..9b49a47 100644 --- a/fishctl/src/command/config/update/v1.rs +++ b/fishctl/src/command/config/update/v1.rs @@ -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 {