This commit is contained in:
Hailey
2025-08-27 10:09:45 -07:00
parent 5809fdde51
commit de20cbe558
2 changed files with 11 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
export OZONE_AGENT_HANDLE="mod-authority.test"
export OZONE_AGENT_PASS="hunter2"
export OZONE_URL=http://localhost:2583
export OZONE_DID=ANY_TIME_YOU_RELAUNCH_ATPROTO_THIS_MUST_BE_DONE_AGAIN
export LINK_DB_POSTGRES_URL=postgres://pg:password@localhost:5433/link_db
export SAFELINK_ENABLED=true
node dist/bin.js
+1 -3
View File
@@ -18,7 +18,7 @@ export class SafelinkClient {
private ozoneAgent: OzoneAgent private ozoneAgent: OzoneAgent
private cursor: string private cursor?: string
constructor({cfg, db}: {cfg: ServiceConfig; db: Database}) { constructor({cfg, db}: {cfg: ServiceConfig; db: Database}) {
this.domainCache = new LRUCache<string, SafelinkRule | 'ok'>({ this.domainCache = new LRUCache<string, SafelinkRule | 'ok'>({
@@ -36,8 +36,6 @@ export class SafelinkClient {
cfg.ozoneAgentHandle!, cfg.ozoneAgentHandle!,
cfg.ozoneAgentPass!, cfg.ozoneAgentPass!,
) )
this.cursor = ''
} }
public async tryFindRule(link: string): Promise<SafelinkRule | 'ok'> { public async tryFindRule(link: string): Promise<SafelinkRule | 'ok'> {