Sign inSign up

cryptocartel/strfry

By cryptocartel

•Updated over 3 years ago

Unofficial strfry nostr relay moved to https://hub.docker.com/r/relayable/strfry

Image
2

10K+

cryptocartel/strfry repository overview

⁠IMAGES MOVED TO https://hub.docker.com/r/relayable/strfry⁠

⁠Overview

This is an unofficial Docker container of strfry⁠ nostr relay. The container is built to include nodejs and python3 for plugin development and testing. This container is maintained by npub1y3uh89v5a4vq92t8q0j6su94zhvcdxpywjn3l6hpsr5welarqtrqj7yzhd @jascha⁠. Please submit any bugs to the official Github repo. If a container related issue or feedback message me on nostr or strfry Telegram⁠.

⁠Examples

docker-compose.yml

services:
  strfry-nostr-relay:
    image: cryptocartel/strfry:latest
    restart: unless-stopped
    volumes:
      - /local/path/to/strfry-data/etc:/etc/
      - /local/path/to/strfry-data/strfry-db:/app/strfry-db
      - /local/path/to/strfry-data/plugins:/app/plugins
    ports:
      - "7777:7777"

*If you wish for your strfry container to get its own internal network IP add network_mode: bridge under image section of compose file.

⁠Plugins

To use plugins drop yours into the plugins folder. Can use the example whitelist.js⁠ from strfry Github. Just add the whitelisted public hex keys of users you want to allow to use relay. Make sure whitelist.js is executable.

⁠Still need to run Nginx⁠ or Nginx Proxy Manager⁠ in front of strfry with SSL.

⁠Example Nginx config:
    server{
        server_name relay.yourdomain.com;
        location / {
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            proxy_pass http://127.0.0.1:7777;
            proxy_http_version 1.1;
            proxy_read_timeout 300s;
            proxy_connect_timeout 300s;
            proxy_send_timeout 300s;
            send_timeout 300s;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }
    }

More detailed howto for setting this up can be found here:
nostr note: note173ccjgyx0wyeg6vprmug6mlh0kucqdlr97at5mhhgv2g3f9xvdes4fw2l3
https://write.bz/jascha/run-your-own-private-strfry-nostr-relay⁠

Tag summary

Content type

Image

Digest

sha256:67a77d551…

Size

113.9 MB

Last updated

over 3 years ago

docker pull cryptocartel/strfry