2024-10-01 12:28:34 -05:00
2024-09-25 15:37:23 -05:00
2024-09-26 12:48:13 -05:00
2024-09-26 16:03:28 -05:00
2024-09-26 12:48:13 -05:00
2024-09-25 13:43:29 -05:00
2024-09-01 13:42:10 -05:00
2024-09-26 17:48:38 +00:00
2024-09-26 12:48:13 -05:00
2024-09-01 13:42:10 -05:00

nsite-ts

A Typescript implementation of nsite

Running with docker-compose

git clone https://github.com/hzrd149/nsite-ts.git
cd nsite-ts
docker compose up

Once the service is running you can access the cached version at http://localhost:8080

If you need to test, you can directly access the ts server at http://localhost:3000

Connecting to Tor and I2P relays

nsite-ts supports ALL_PROXY and other proxy env variables here

Install Tor (Documentation) and I2Pd (Documentation)

Create a proxy.pac file

// SPDX-License-Identifier: CC0-1.0

function FindProxyForURL(url, host)
{
  if (shExpMatch(host, "*.i2p"))
  {
    return "PROXY 127.0.0.1:4444; SOCKS5 127.0.0.1:4447";
  }
  if (shExpMatch(host, "*.onion"))
  {
    return "SOCKS5 127.0.0.1:9050";
  }
  return "DIRECT";
}

Start server with PROXY variable

PROXY=pac+file://proxy.pac
Description
Typescript gateway for simple static websites on nostr
Readme MIT 473 KiB
Languages
TypeScript 62.6%
JavaScript 21.5%
HTML 13.1%
Dockerfile 2.8%