Skip to content

gnostr-org/gnostr-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gostr-proxy

Push and get events to your Proxy, get results from multiple Nostr relays

Quick Install:

curl https://raw.githubusercontent.com/gnostr-org/gnostr-proxy/master/gnostr-proxy | bash

or

make run

Installation

In the project directory, run:

pnpm install

Edit your env variables. You can use a .env file by copying the file .env.example in the root directory, or you can set your variables into your hosting provider UI.
For APP_KEY, you can use the following command to generate one node ace generate:key

PORT=3333
HOST=0.0.0.0
NODE_ENV=development
APP_KEY=unique-key
DRIVE_DISK=local
SESSION_DRIVER=cookie
CACHE_VIEWS=false
PROXY_URL=wss://your-proxy.com
RELAYS=wss://relay1.com,wss://relay2.com,wss://relay.com

Launch

Development

npm run dev to start the app in dev mode.
Open http://localhost:3333 to view it in the browser.
Use ws://localhost:3333 into your Nostr client.

Production

npm run build
cd build
pnpm install --prod
node server.js

Running tests

TODO

Known issues

  • None?

Learn More

To learn Fastify, check out the Fastify documentation.

===

"act in act" like "docker in docker"

  1. Install act CI

    $curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash

  2. Install make

    $brew install make or $apt install make

  3. clone repo

    $git clone https://github.com/RandyMcMillan/nuke-docker.git

    $cd nuke-docker

  4. $make

  1. $make push
nuke-docker.mov

act example

act -v   -W .github/workflows/push.yml
act -vr  -W .github/workflows/push.yml
act -vrb -W .github/workflows/push.yml

=======

License

This project is MIT licensed.

Packages

No packages published

Languages

  • TypeScript 57.3%
  • Shell 15.7%
  • Makefile 14.0%
  • HTML 5.8%
  • JavaScript 5.2%
  • CSS 1.2%
  • Other 0.8%