diff options
Diffstat (limited to 'internal/config/config.go')
| -rw-r--r-- | internal/config/config.go | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 36d3e1e..dc347d6 100644 --- a/internal/config/config.go +++ b/internal/config/config.go | |||
| @@ -25,11 +25,12 @@ type Config struct { | |||
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | type RelayConfig struct { | 27 | type RelayConfig struct { |
| 28 | Name string `yaml:"name"` | 28 | Name string `yaml:"name"` |
| 29 | Description string `yaml:"description"` | 29 | Description string `yaml:"description"` |
| 30 | Pubkey string `yaml:"pubkey"` | 30 | Pubkey string `yaml:"pubkey"` |
| 31 | Contact string `yaml:"contact"` | 31 | Contact string `yaml:"contact"` |
| 32 | Icon string `yaml:"icon"` | 32 | Icon string `yaml:"icon"` |
| 33 | AllowedKinds []int32 `yaml:"allowed_kinds"` | ||
| 33 | } | 34 | } |
| 34 | 35 | ||
| 35 | type ServerConfig struct { | 36 | type ServerConfig struct { |
| @@ -102,6 +103,20 @@ func Default() *Config { | |||
| 102 | Relay: RelayConfig{ | 103 | Relay: RelayConfig{ |
| 103 | Name: "muxstr relay", | 104 | Name: "muxstr relay", |
| 104 | Description: "High-performance Nostr relay with gRPC, Connect, and WebSocket support", | 105 | Description: "High-performance Nostr relay with gRPC, Connect, and WebSocket support", |
| 106 | AllowedKinds: []int32{ | ||
| 107 | 0, // Metadata/profile | ||
| 108 | 1, // Short text note | ||
| 109 | 3, // Contacts/following | ||
| 110 | 4, // Encrypted DM | ||
| 111 | 5, // Event deletion | ||
| 112 | 6, // Repost | ||
| 113 | 7, // Reaction | ||
| 114 | 9735, // Zap | ||
| 115 | 10000, 10001, 10002, // Mute/pin lists (NIP-51) | ||
| 116 | 10050, // Relay list metadata | ||
| 117 | 30023, // Long-form content (NIP-23) | ||
| 118 | 30078, // Application-specific data (NIP-78) | ||
| 119 | }, | ||
| 105 | }, | 120 | }, |
| 106 | Server: ServerConfig{ | 121 | Server: ServerConfig{ |
| 107 | GrpcAddr: ":50051", | 122 | GrpcAddr: ":50051", |
