Build Phase 2 judge vertical slice

This commit is contained in:
xuyue committed 2026-08-06 22:42:39 -06:00
1 parent e6329ecabb
commit ec274419c3
41 files changed
+2945 -669

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
export const config = {
port: Number(process.env.PORT ?? 3000),
redisUrl: process.env.REDIS_URL ?? "redis://localhost:6380",
sessionCookie: "oj2_session",
sessionTtlSeconds: Number(process.env.SESSION_TTL_SECONDS ?? 7 * 24 * 60 * 60),
secureCookies: process.env.COOKIE_SECURE === "true",
judgeServerUrl: process.env.JUDGE_SERVER_URL ?? "http://localhost:8081",
judgeServerToken: process.env.JUDGE_SERVER_TOKEN ?? "oj2-dev-token",
judgeConcurrency: Number(process.env.JUDGE_CONCURRENCY ?? 2),
}