fix redirection

This commit is contained in:
Jun Kurihara 2022-06-23 23:10:19 -04:00
commit c47efbfc93
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
6 changed files with 72 additions and 49 deletions

View file

@ -33,7 +33,7 @@ pub fn parse_opts(globals: &mut Globals, backends: &mut HashMap<String, Backend>
hostname: "localhost".to_string(),
reverse_proxy: ReverseProxy {
default_destination_uri: "https://google.com/".parse::<Uri>().unwrap(),
destination_uris: Some(map_example),
destination_uris: map_example,
},
redirect_to_https: Some(true), // TODO: ここはtlsが存在する時はSomeにすべき。Noneはtlsがないときのみのはず