remove websocket config

This commit is contained in:
MeexReay 2025-04-06 20:16:15 +03:00
parent d40c396bcc
commit 9d5b0515ea
3 changed files with 2 additions and 10 deletions

View File

@ -4,7 +4,6 @@ https_host: localhost:443 # Https server host
threadpool_size: 10 # Threadpool size (count of threads that accept requests) (optional, default - 10)
connection_timeout: 10 # Read and write timeout of connections in seconds (optional, default - 10)
incoming_ip_forwarding: none # Read IP forwarding on incoming connections (optional, default - none)
websocket_host: localhost:999 # Websocket messaging host to edit sites (optional, default - null)
sites:
- domain: localhost # Site domain (use wildcard matching)

View File

@ -1,4 +1,3 @@
pub mod config;
pub mod server;
pub mod ssl_cert;
pub mod websocket;

View File

@ -1,6 +1,6 @@
use std::{fs, path::Path, sync::{Arc, RwLock}};
use flowgate::{config::Config, server::FlowgateServer, websocket};
use flowgate::{config::Config, server::FlowgateServer};
fn main() {
colog::init();
@ -13,10 +13,4 @@ fn main() {
let server = FlowgateServer::new(config.clone());
server.start();
if config.read().unwrap().websocket_host.is_some() {
websocket::start_server(config);
} else {
loop {}
}
}