remove websocket config
This commit is contained in:
parent
d40c396bcc
commit
9d5b0515ea
1
conf.yml
1
conf.yml
@ -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)
|
||||
|
@ -1,4 +1,3 @@
|
||||
pub mod config;
|
||||
pub mod server;
|
||||
pub mod ssl_cert;
|
||||
pub mod websocket;
|
||||
pub mod ssl_cert;
|
@ -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 {}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user