fix sample config
This commit is contained in:
parent
4338064091
commit
8a2c24fb5e
2 changed files with 6 additions and 5 deletions
|
|
@ -37,8 +37,8 @@ reverse_proxy = [
|
||||||
# default destination if path is not specified
|
# default destination if path is not specified
|
||||||
# Array for load balancing
|
# Array for load balancing
|
||||||
{ upstream = [
|
{ upstream = [
|
||||||
{ location = 'www.google.com', tls = true },
|
{ location = 'www.yahoo.com', tls = true },
|
||||||
{ location = 'www.google.co.jp', tls = true },
|
{ location = 'www.yahoo.co.jp', tls = true },
|
||||||
], upstream_options = [
|
], upstream_options = [
|
||||||
"override_host",
|
"override_host",
|
||||||
] },
|
] },
|
||||||
|
|
@ -51,8 +51,8 @@ reverse_proxy = [
|
||||||
] },
|
] },
|
||||||
]
|
]
|
||||||
# Optional: TLS setting. if https_port is specified and tls is true above, this must be given.
|
# Optional: TLS setting. if https_port is specified and tls is true above, this must be given.
|
||||||
tls = { https_redirection = true, tls_cert_path = '/certs/localhost.pem', tls_cert_key_path = '/certs/localhost.pem' } # for docker volume mounted certs
|
tls = { https_redirection = true, tls_cert_path = '/certs/localhost.crt', tls_cert_key_path = '/certs/localhost.key' } # for docker volume mounted certs
|
||||||
#tls = { https_redirection = true, tls_cert_path = './localhost.pem', tls_cert_key_path = './localhost.pem' } # for local
|
#tls = { https_redirection = true, tls_cert_path = './localhost.crt', tls_cert_key_path = './localhost.key' } # for local
|
||||||
|
|
||||||
|
|
||||||
## List of destinations to send data to.
|
## List of destinations to send data to.
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,6 @@ services:
|
||||||
tty: false
|
tty: false
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- ./localhost.pem:/certs/localhost.pem:ro
|
- ./localhost.crt:/certs/localhost.crt:ro
|
||||||
|
- ./localhost.key:/certs/localhost.key:ro
|
||||||
- ./config-example.toml:/etc/rpxy.toml:ro
|
- ./config-example.toml:/etc/rpxy.toml:ro
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue