Connect
+To access the dashboard, use ShockWallet and tap the logo 3 times.
+Scan the QR with ShockWallet to insert the connection details.
+strfry.shock.network
npub123abcdefghhhhhhhhhhhhhhh
+
Note: Code contains a one-time pairing secret.
+diff --git a/src/auth.ts b/src/auth.ts index febe1e5f..e98e1652 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -1,11 +1,15 @@ +import express from 'express'; +import path from 'path'; import { ServerOptions } from "../proto/autogenerated/ts/express_server"; import { AdminContext, MetricsContext } from "../proto/autogenerated/ts/types"; import Main from './services/main' import { getLogger } from './services/helpers/logger.js' + const serverOptions = (mainHandler: Main): ServerOptions => { const log = getLogger({}) return { logger: { log, error: err => log("ERROR", err) }, + staticFiles: path.resolve('static'), AdminAuthGuard: adminAuth, MetricsAuthGuard: metricsAuth, AppAuthGuard: async (authHeader) => { return { app_id: mainHandler.applicationManager.DecodeAppToken(stripBearer(authHeader)) } }, diff --git a/static/LightningPub.png b/static/LightningPub.png new file mode 100644 index 00000000..1cbc35de Binary files /dev/null and b/static/LightningPub.png differ diff --git a/static/connect.html b/static/connect.html new file mode 100644 index 00000000..9e6a60e5 --- /dev/null +++ b/static/connect.html @@ -0,0 +1,47 @@ + + +
+ +
+
+ To access the dashboard, use ShockWallet and tap the logo 3 times.
+Scan the QR with ShockWallet to insert the connection details.
+strfry.shock.network
npub123abcdefghhhhhhhhhhhhhhh
Note: Code contains a one-time pairing secret.
+
+
+ To manage your Pub, you will connect a via remote dashboard.
+Confirm a few things to generate a connection string:
+Use default managed relay,
1000 sats per month paid automatically after grace period.
Or, enter a custom relay:
+Need Help?
+