wip
This commit is contained in:
parent
c47efbfc93
commit
8a89fcb2c2
7 changed files with 153 additions and 97 deletions
|
|
@ -13,13 +13,13 @@ https_port = 8443
|
|||
# Backend settings #
|
||||
###################################
|
||||
|
||||
[[backend]]
|
||||
[[application]]
|
||||
app_name = 'localhost' # this should be option, if null then same as hostname
|
||||
hostname = 'localhost'
|
||||
redirect_to_https = true
|
||||
https_redirection = true
|
||||
reverse_proxy = [
|
||||
{ path = '*', destination = 'https://192.168.10.0:3000' },
|
||||
{ path = '/path/to', destination = 'https://192.168.10.1:4000/path/to' },
|
||||
{ path = '*', destination = '192.168.10.0:3000', tls = true },
|
||||
{ path = '/path/to', destination = '192.168.10.1:4000', tls = true },
|
||||
]
|
||||
## List of destinations to send data to.
|
||||
## At this point, round-robin is used for load-balancing if multiple URLs are specified.
|
||||
|
|
@ -29,10 +29,10 @@ tls_cert_path = 'localhost1.pem'
|
|||
tls_cert_key_path = 'localhost1.pem'
|
||||
|
||||
|
||||
[[backend]]
|
||||
[[application]]
|
||||
app_name = 'locahost_application'
|
||||
hostname = 'localhost.localdomain'
|
||||
redirect_to_https = true
|
||||
reverse_proxy = [{ path = '/', destination = 'https://www.google.com/' }]
|
||||
https_redirection = true
|
||||
reverse_proxy = [{ path = '/', destination = 'www.google.com', tls = true }]
|
||||
tls_cert_path = 'localhost2.pem'
|
||||
tls_cert_key_path = 'localhost2.pem'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue