diff --git a/static/flotilla.png b/static/flotilla.png new file mode 100644 index 0000000..7944834 Binary files /dev/null and b/static/flotilla.png differ diff --git a/static/logo.png b/static/logo.png new file mode 100644 index 0000000..13affd0 Binary files /dev/null and b/static/logo.png differ diff --git a/templates/index.html b/templates/index.html index 45b983b..e571dc7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1 +1,181 @@ -hi + + + + + + Zooid Relay + + + + +
+

Zooid Relay

+

Connect to this relay using your favorite Nostr app.

+ + + Flotilla + Open Flotilla + + +
+
WebSocket relay endpoint
+
+ wss://... + +
+
+
+ +
Copied to clipboard!
+ + + + diff --git a/zooid/instance.go b/zooid/instance.go index b24fa61..2003c82 100644 --- a/zooid/instance.go +++ b/zooid/instance.go @@ -87,6 +87,9 @@ func MakeInstance(filename string) (*Instance, error) { instance.Relay.RejectConnection = instance.RejectConnection instance.Relay.PreventBroadcast = instance.PreventBroadcast + // Todo: when there's a new version of khatru + // instance.Relay.StartExpirationManager() + // HTTP request handling router := instance.Relay.Router() @@ -95,6 +98,8 @@ func MakeInstance(filename string) (*Instance, error) { http.ServeFile(w, r, "templates/index.html") }) + router.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) + // Initialize stuff if err := instance.Events.Init(); err != nil {