mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 09:52:14 +01:00
21 lines
544 B
Plaintext
21 lines
544 B
Plaintext
# route lightning API endpoints to lightning backend
|
|
location /api/v1/lightning {
|
|
try_files /dev/null @mempool-api-v1-lightning;
|
|
}
|
|
location @mempool-api-v1-lightning {
|
|
proxy_pass $mempoolMainnetLightning;
|
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_cache_background_update on;
|
|
proxy_cache_use_stale updating;
|
|
proxy_cache apiwarm;
|
|
proxy_cache_valid 200 10s;
|
|
proxy_redirect off;
|
|
|
|
expires 10s;
|
|
}
|