Skip to content

A plugin for the strfry nostr relay to configure write policies.

License

Notifications You must be signed in to change notification settings

braydonf/strfry-writepolicy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strfry-writepolicy

Build & Install

go get
go build
cp strfry-writepolicy /usr/local/bin/strfry-writepolicy

Configuration

In your strfry.conf file, you can add this plugin by including it in the write policy configuration.

    writePolicy {
        plugin = "/usr/local/bin/strfry-writepolicy"
    }

To configure the policies, you can use environment variables or a configuration file at /etc/strfry-writepolicy.yml.

Example environment variables:

export STRFRY_AUTHOR_WHITELIST='<hex-pubkey>, <hex-pubkey>'

Example /etc/strfry-writepolicy.yml configuration file:

author-whitelist:
  - "<32-byte-public-key-hex>"
  - "<32-byte-public-key-hex>"

About

A plugin for the strfry nostr relay to configure write policies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages