Fork of official Bluesky PDS (Personal Data Server).

fix tls check

+6 -3
+1 -1
installer.sh
··· 306 { 307 email ${PDS_ADMIN_EMAIL} 308 on_demand_tls { 309 - ask http://localhost:3000/check-handle 310 } 311 } 312
··· 306 { 307 email ${PDS_ADMIN_EMAIL} 308 on_demand_tls { 309 + ask http://localhost:3000/tls-check 310 } 311 } 312
+5 -2
service/index.js
··· 16 const pds = await PDS.create(cfg, secrets); 17 await pds.start(); 18 httpLogger.info("pds has started"); 19 - pds.app.get("/check-handle", (req, res) => { 20 checkHandleRoute(pds, req, res); 21 }); 22 // Graceful shutdown (see also https://aws.amazon.com/blogs/containers/graceful-shutdowns-with-ecs/) ··· 40 message: "bad or missing domain query param", 41 }); 42 } 43 const isHostedHandle = pds.ctx.cfg.identity.serviceHandleDomains.find( 44 (avail) => domain.endsWith(avail) 45 ); ··· 56 message: "handle not found for this domain", 57 }); 58 } 59 - return res.json({ did: account.did, handle: account.handle }); 60 } catch (err) { 61 httpLogger.error({ err }, "check handle failed"); 62 return res.status(500).json({
··· 16 const pds = await PDS.create(cfg, secrets); 17 await pds.start(); 18 httpLogger.info("pds has started"); 19 + pds.app.get("/tls-check", (req, res) => { 20 checkHandleRoute(pds, req, res); 21 }); 22 // Graceful shutdown (see also https://aws.amazon.com/blogs/containers/graceful-shutdowns-with-ecs/) ··· 40 message: "bad or missing domain query param", 41 }); 42 } 43 + if (domain === pds.ctx.cfg.service.hostname) { 44 + return res.json({ success: true }); 45 + } 46 const isHostedHandle = pds.ctx.cfg.identity.serviceHandleDomains.find( 47 (avail) => domain.endsWith(avail) 48 ); ··· 59 message: "handle not found for this domain", 60 }); 61 } 62 + return res.json({ success: true }); 63 } catch (err) { 64 httpLogger.error({ err }, "check handle failed"); 65 return res.status(500).json({