Skip to content

Commit 5c6fce3

Browse files
Carl DongCarl Dong
authored andcommitted
docs: Match and pass /litrpc.* locations in nginx
Also escape the "." for more precise regex matching
1 parent c002640 commit 5c6fce3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

doc/example-nginx.conf

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,7 @@ http {
3939
proxy_pass https://172.17.0.1:8443/;
4040
}
4141

42-
location ~* ^/lnrpc.Lightning/ {
43-
# This cannot have a slash at the end!
44-
proxy_pass https://$lnd_backend;
45-
}
46-
47-
location ~* ^/looprpc.SwapClient/ {
48-
# This cannot have a slash at the end!
49-
proxy_pass https://$lnd_backend;
50-
}
51-
52-
location ~* ^/poolrpc.Trader/ {
42+
location ~* ^/(ln|loop|pool|lit)rpc\. {
5343
# This cannot have a slash at the end!
5444
proxy_pass https://$lnd_backend;
5545
}

0 commit comments

Comments
 (0)