Something went wrong. Try again.
Private microblogging for mutual follows, built on ATProto Spaces. secretsky.at
Something went wrong. Try again.
123456789101112131415161718192021222324252627import { getConfig } from "../lib/config";import { migrate } from "../lib/db/migrations";import { publishLexicons } from "../lib/lexicon-publisher";import { SyncService } from "../lib/sync/service";
const config = getConfig();await migrate();if (config.publishLexicons) await publishLexicons();
const service = new SyncService({ internalUrl: config.syncInternalUrl, managingAppService: config.managingAppService, pollInterval: config.syncPollInterval,});
await service.start();let closing = false;async function close() { if (closing) return; closing = true; await service.close();}
for (const signal of ["SIGINT", "SIGTERM"] as const) { process.once(signal, () => void close());}