Merge branch 'main' of github.com:junkurihara/rust-rpxy

This commit is contained in:
Jun Kurihara 2022-08-25 14:44:41 +09:00
commit 22132fc8a2

View file

@ -125,10 +125,10 @@ First of all, you need to specify a port `listen_port_tls` listening the HTTPS t
```toml ```toml
listen_port = 80 listen_port = 80
listen_port_tls = 443 listen_port_tls = 443
tls = { tls_cert_path = 'localhost.crt', tls_cert_key_path = 'localhost.key' }
[apps."app_name"] [apps."app_name"]
server_name = 'app1.example.com' server_name = 'app1.example.com'
tls = { tls_cert_path = 'localhost.crt', tls_cert_key_path = 'localhost.key' }
reverse_proxy = [{ upstream = [{ location = 'app1.local:8080' }] }] reverse_proxy = [{ upstream = [{ location = 'app1.local:8080' }] }]
``` ```