From 5c6fce304e003e95a18bba451ce360e138ec4132 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Tue, 4 Jan 2022 19:58:29 -0500 Subject: [PATCH] docs: Match and pass /litrpc.* locations in nginx Also escape the "." for more precise regex matching --- doc/example-nginx.conf | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/doc/example-nginx.conf b/doc/example-nginx.conf index 4dba6fa6b..1b218ad70 100644 --- a/doc/example-nginx.conf +++ b/doc/example-nginx.conf @@ -39,17 +39,7 @@ http { proxy_pass https://172.17.0.1:8443/; } - location ~* ^/lnrpc.Lightning/ { - # This cannot have a slash at the end! - proxy_pass https://$lnd_backend; - } - - location ~* ^/looprpc.SwapClient/ { - # This cannot have a slash at the end! - proxy_pass https://$lnd_backend; - } - - location ~* ^/poolrpc.Trader/ { + location ~* ^/(ln|loop|pool|lit)rpc\. { # This cannot have a slash at the end! proxy_pass https://$lnd_backend; }