closedrelay

command
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2022 License: Unlicense Imports: 15 Imported by: 0

README

closed relay
============

  - a basic relay implementation based on relayer.
  - uses postgres, which I think must be over version 12 since it uses generated columns.
  - only accepts events from specific pubkeys defined via the environment variable `AUTHORIZED_PUBKEYS` (comma-separated).

running
-------

grab a binary from the releases page and run it with the environment variable POSTGRESQL_DATABASE set to some postgres url:

    POSTGRESQL_DATABASE=postgres://name:pass@localhost:5432/dbname ./closedrelay

it also accepts a HOST and a PORT environment variables.

compiling
---------

if you know Go you already know this:

    go install github.com/fiatjaf/relayer/closedrelay

or something like that.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL