mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
use_tls setting
This commit is contained in:
parent
259883d2b7
commit
d2191f9699
@ -2,6 +2,7 @@ Config(
|
||||
data_directory: "./sample",
|
||||
ip_address: "127.0.0.1",
|
||||
port: 8080,
|
||||
use_tls: false,
|
||||
certchain_pem_path: "tls/fullchain.pem",
|
||||
key_pem_path: "tls/privkey.pem",
|
||||
name: None,
|
||||
|
||||
@ -5,6 +5,7 @@ pub struct Config {
|
||||
pub data_directory: String,
|
||||
pub ip_address: String,
|
||||
pub port: u16,
|
||||
pub use_tls: bool,
|
||||
pub certchain_pem_path: String,
|
||||
pub key_pem_path: String,
|
||||
pub name: Option<String>,
|
||||
@ -18,6 +19,7 @@ impl Default for Config {
|
||||
data_directory: "/tmp".to_string(),
|
||||
ip_address: "127.0.0.1".to_string(),
|
||||
port: 80,
|
||||
use_tls: false,
|
||||
certchain_pem_path: "./tls/fullchain.pem".to_string(),
|
||||
key_pem_path: "./tls/privkey.pem".to_string(),
|
||||
name: None,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user