From 8a2c24fb5ee8f368ba2efe11581fa8344738f5a1 Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Sat, 23 Jul 2022 02:02:43 +0900 Subject: [PATCH] fix sample config --- config-example.toml | 8 ++++---- docker-compose.yml | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config-example.toml b/config-example.toml index 7413f83..4e26faf 100644 --- a/config-example.toml +++ b/config-example.toml @@ -37,8 +37,8 @@ reverse_proxy = [ # default destination if path is not specified # Array for load balancing { upstream = [ - { location = 'www.google.com', tls = true }, - { location = 'www.google.co.jp', tls = true }, + { location = 'www.yahoo.com', tls = true }, + { location = 'www.yahoo.co.jp', tls = true }, ], upstream_options = [ "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. -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 = './localhost.pem', tls_cert_key_path = './localhost.pem' } # for local +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.crt', tls_cert_key_path = './localhost.key' } # for local ## List of destinations to send data to. diff --git a/docker-compose.yml b/docker-compose.yml index f6d9220..17a5fd4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,5 +15,6 @@ services: tty: false privileged: true 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