mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
22 lines
511 B
JavaScript
22 lines
511 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const { createProxyMiddleware } = require('http-proxy-middleware');
|
|
module.exports = function (app) {
|
|
app.use(
|
|
'/',
|
|
createProxyMiddleware(
|
|
[
|
|
'/lnrpc.Lightning',
|
|
'/looprpc.SwapClient',
|
|
'/poolrpc.Trader',
|
|
'/frdrpc.FaradayServer',
|
|
'/litrpc.Session',
|
|
'/litrpc.Accounts',
|
|
],
|
|
{
|
|
target: 'https://localhost:8443',
|
|
ws: true,
|
|
secure: false,
|
|
},
|
|
),
|
|
);
|
|
};
|