tls_redirection_port feature

fixes #178
This commit is contained in:
Aleksandar N. Kostadinov 2024-09-03 18:32:14 +03:00
commit 3867ce6831
No known key found for this signature in database
GPG key ID: DE37CA1CBFB3F811
3 changed files with 7 additions and 1 deletions

View file

@ -121,7 +121,7 @@ where
"Redirect to secure connection: {}",
<&ServerName as TryInto<String>>::try_into(&backend_app.server_name).unwrap_or_default()
);
return secure_redirection_response(&backend_app.server_name, self.globals.proxy_config.https_port, &req);
return secure_redirection_response(&backend_app.server_name, self.globals.proxy_config.https_redirection_port, &req);
}
// Find reverse proxy for given path and choose one of upstream host