Nostr-relay
889
สร้างโฟรเดอร์ strfry
mkdir strfry && cd strfry
mkdir strfry-db
ดาวน์โหลดไฟล์ strfry.conf
wget -O strfry.conf https://raw.githubusercontent.com/notoshi404/nostr-relay-docker/refs/heads/main/strfry/strfry.conf
แก้ไขไฟล์ strfry.conf
sudo nano strfry.conf
.
.
relay {
# Interface to listen on. Use 0.0.0.0 to listen on all interfaces (restart required)
bind = "0.0.0.0"
# Port to open for the nostr websocket protocol (restart required)
port = 7777
# Set OS-limit on maximum number of open files/sockets (if 0, don't attempt to set) (restart required)
nofiles = 0
# HTTP header that contains the client's real IP, before reverse proxying (ie x-real-ip) (MUST be all lower-case)
realIpHeader = ""
info {
# NIP-11: Name of this server. Short/descriptive (< 30 characters)
name = "strfry"
# NIP-11: Detailed information about relay, free-form
description = "This is a strfry instance."
# NIP-11: Administrative nostr pubkey, for contact purposes
pubkey = "[Public_Key(hex)]"
# NIP-11: Alternative administrative contact (email, website, etc)
contact = ""
# NIP-11: URL pointing to an image to be used as an icon for the relay
icon = ""
# List of supported lists as JSON array, or empty string to use default. Example: [1,2]
nips = ""
}
.
.
docker pull notoshi/strfry:latest
ดาวน์โหลดไฟล์ docker-compose.yaml
wget -O docker-compose.yaml https://raw.githubusercontent.com/notoshi404/nostr-relay-docker/refs/heads/main/strfry/docker-compose.yaml
services:
strfry:
container_name: strfry
image: notoshi/strfry:latest
ports:
- 7777:7777
volumes:
- ./strfry-db:/app/strfry-db
- ./strfry.conf:/etc/strfry.conf
docker compose up -d
Version 1.1.0
Content type
Image
Digest
sha256:77ac2080a…
Size
54.9 MB
Last updated
6 months ago
docker pull notoshi/strfry