tangled
alpha
login
or
join now
notjack.space
/
wisp.place-monorepo
forked from
nekomimi.pet/wisp.place-monorepo
0
fork
atom
Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
0
fork
atom
overview
issues
pulls
pipelines
dns worker flag
nekomimi.pet
3 months ago
a58efefd
9ddca0e8
verified
This commit was signed with the committer's
known signature
.
nekomimi.pet
SSH Key Fingerprint:
SHA256:knUvGhH8rbrdqbzO9WXAIaTK0LrdYw2UC0qWB43Ic0Q=
+7
-2
1 changed file
expand all
collapse all
unified
split
apps
main-app
src
index.ts
+7
-2
apps/main-app/src/index.ts
···
61
61
setInterval(runMaintenance, 60 * 60 * 1000)
62
62
63
63
// Start DNS verification worker (runs every 10 minutes)
64
64
+
// Can be disabled via DISABLE_DNS_WORKER=true environment variable
64
65
const dnsVerifier = new DNSVerificationWorker(
65
66
10 * 60 * 1000, // 10 minutes
66
67
(msg, data) => {
···
68
69
}
69
70
)
70
71
71
71
-
dnsVerifier.start()
72
72
-
logger.info('DNS Verifier Started - checking custom domains every 10 minutes')
72
72
+
if (Bun.env.DISABLE_DNS_WORKER !== 'true') {
73
73
+
dnsVerifier.start()
74
74
+
logger.info('DNS Verifier Started - checking custom domains every 10 minutes')
75
75
+
} else {
76
76
+
logger.info('DNS Verifier disabled via DISABLE_DNS_WORKER environment variable')
77
77
+
}
73
78
74
79
export const app = new Elysia({
75
80
serve: {