mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
ws: reload tls config on SIGUSR1
This commit is contained in:
parent
c5c995bb80
commit
6a23ef9103
8 changed files with 34 additions and 10 deletions
|
|
@ -16,7 +16,7 @@ use aquatic_toml_config::TomlConfig;
|
|||
#[serde(default, deny_unknown_fields)]
|
||||
pub struct Config {
|
||||
/// Number of socket workers.
|
||||
///
|
||||
///
|
||||
/// On servers with 1-7 physical cores, using a worker per core is
|
||||
/// recommended. With more cores, using two workers less than the
|
||||
/// number of cores is recommended.
|
||||
|
|
@ -26,7 +26,7 @@ pub struct Config {
|
|||
/// swarm workers, encode them and send them back over the socket.
|
||||
pub socket_workers: usize,
|
||||
/// Number of swarm workers.
|
||||
///
|
||||
///
|
||||
/// A single worker is recommended for servers with 1-7 physical cores.
|
||||
/// With more cores, using two workers is recommended.
|
||||
///
|
||||
|
|
@ -39,7 +39,7 @@ pub struct Config {
|
|||
pub cleaning: CleaningConfig,
|
||||
pub privileges: PrivilegeConfig,
|
||||
/// Access list configuration
|
||||
///
|
||||
///
|
||||
/// The file is read on start and when the program receives `SIGUSR1`. If
|
||||
/// initial parsing fails, the program exits. Later failures result in in
|
||||
/// emitting of an error-level log message, while successful updates of the
|
||||
|
|
@ -85,6 +85,11 @@ pub struct NetworkConfig {
|
|||
pub tcp_backlog: i32,
|
||||
|
||||
/// Enable TLS
|
||||
///
|
||||
/// The TLS files are read on start and when the program receives `SIGUSR1`.
|
||||
/// If initial parsing fails, the program exits. Later failures result in
|
||||
/// in emitting of an error-level log message, while a successful update
|
||||
/// results in emitting of an info-level log message.
|
||||
pub enable_tls: bool,
|
||||
/// Path to TLS certificate (DER-encoded X.509)
|
||||
pub tls_certificate_path: PathBuf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue