summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/relay/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/relay/main.go b/cmd/relay/main.go
index 8948ebf..6974f65 100644
--- a/cmd/relay/main.go
+++ b/cmd/relay/main.go
@@ -115,6 +115,15 @@ func main() {
115 }() 115 }()
116 } 116 }
117 117
118 if cfg.Auth.Read.Enabled || cfg.Auth.Write.Enabled {
119 wsHandler.SetAuthConfig(&wshandler.AuthConfig{
120 ReadEnabled: cfg.Auth.Read.Enabled,
121 WriteEnabled: cfg.Auth.Write.Enabled,
122 ReadAllowedPubkeys: cfg.Auth.Read.AllowedNpubs,
123 WriteAllowedPubkeys: cfg.Auth.Write.AllowedNpubs,
124 })
125 }
126
118 var grpcDisplay, httpDisplay, wsDisplay string 127 var grpcDisplay, httpDisplay, wsDisplay string
119 if cfg.Server.PublicURL != "" { 128 if cfg.Server.PublicURL != "" {
120 grpcDisplay = cfg.Server.PublicURL + ":443" 129 grpcDisplay = cfg.Server.PublicURL + ":443"