add https redirection
This commit is contained in:
parent
730ae1f08d
commit
ef5d1c0f2a
3 changed files with 85 additions and 10 deletions
|
|
@ -35,7 +35,7 @@ pub fn parse_opts(globals: &mut Globals, backends: &mut HashMap<String, Backend>
|
|||
default_destination_uri: "https://google.com/".parse::<Uri>().unwrap(),
|
||||
destination_uris: Some(map_example),
|
||||
},
|
||||
redirect_to_https: None, // TODO: ここはHTTPの時のみの設定。tlsの存在とは排他的。
|
||||
redirect_to_https: Some(true), // TODO: ここはtlsが存在する時はSomeにすべき。Noneはtlsがないときのみのはず
|
||||
|
||||
tls_cert_path: Some(PathBuf::from(r"localhost1.pem")),
|
||||
tls_cert_key_path: Some(PathBuf::from(r"localhost1.pem")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue