Skip to content

Commit

Permalink
Fix and simplify LiT nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Feb 16, 2022
1 parent 17f291d commit ac398d5
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions Production/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header X-Forwarded-Proto https;

sub_filter_once off;
sub_filter_types *;



sub_filter 'src="/' 'src="/helipad/';
sub_filter 'href="/' 'href="/helipad/';
sub_filter '/image' '/helipad/image';
sub_filter '/pew' '/helipad/pew';
sub_filter '/image' '/helipad/image';
sub_filter '/pew' '/helipad/pew';
sub_filter '/boosts' '/helipad/boosts';
proxy_pass http://helipad:2112/;

Expand All @@ -144,15 +144,7 @@
proxy_pass http://lnd_lit:8080/;
}

location ~* ^/lnrpc.Lightning/ {
proxy_pass http://lnd_lit:8080;
}

location ~* ^/looprpc.SwapClient/ {
proxy_pass http://lnd_lit:8080;
}

location ~* ^/poolrpc.Trader/ {
location ~* ^/(ln|loop|pool|lit)rpc\. {
proxy_pass http://lnd_lit:8080;
}
{{ end }}
Expand Down

0 comments on commit ac398d5

Please sign in to comment.