The jirorian upload service subscribes to kind 5392 events for its NIP-44-gated whitelist registration flow; the relay must accept them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ pkgs, ... }:
|
|
let
|
|
config = pkgs.writeText "nostr-rs-relay-config.toml" ''
|
|
[info]
|
|
relay_url = "wss://relay.otherwhere.app/"
|
|
name = "Otherwhere Relay"
|
|
description = "Test Relay"
|
|
pubkey = ""
|
|
contact = "trl@posteo.net"
|
|
|
|
[database]
|
|
data_directory = "/var/lib/nostr-rs-relay"
|
|
|
|
[network]
|
|
address = "127.0.0.1"
|
|
port = 8880
|
|
|
|
[limits]
|
|
event_kind_allowlist = [0, 3, 5, 7, 20, 1111, 2003, 2004, 5392, 37515, 37518]
|
|
'';
|
|
in
|
|
{
|
|
users.users.nostr-rs-relay = {
|
|
isSystemUser = true;
|
|
group = "nostr-rs-relay";
|
|
home = "/var/lib/nostr-rs-relay";
|
|
};
|
|
users.groups.nostr-rs-relay = {};
|
|
|
|
systemd.services.nostr-rs-relay = {
|
|
description = "Nostr relay";
|
|
after = [ "network.target" ];
|
|
wantedBy = [ "multi-user.target" ];
|
|
serviceConfig = {
|
|
Type = "simple";
|
|
User = "nostr-rs-relay";
|
|
Group = "nostr-rs-relay";
|
|
ExecStart = "${pkgs.nostr-rs-relay}/bin/nostr-rs-relay --config ${config}";
|
|
StateDirectory = "nostr-rs-relay";
|
|
Restart = "on-failure";
|
|
RestartSec = 5;
|
|
};
|
|
};
|
|
}
|