@atproto/ozone
Version:
Backend service for moderating the Bluesky network.
46 lines • 2.74 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.readEnv = void 0;
const common_1 = require("@atproto/common");
const readEnv = () => {
return {
nodeEnv: (0, common_1.envStr)('NODE_ENV'),
devMode: (0, common_1.envBool)('OZONE_DEV_MODE'),
version: (0, common_1.envStr)('OZONE_VERSION'),
port: (0, common_1.envInt)('OZONE_PORT'),
publicUrl: (0, common_1.envStr)('OZONE_PUBLIC_URL'),
serverDid: (0, common_1.envStr)('OZONE_SERVER_DID'),
appviewUrl: (0, common_1.envStr)('OZONE_APPVIEW_URL'),
appviewDid: (0, common_1.envStr)('OZONE_APPVIEW_DID'),
appviewPushEvents: (0, common_1.envBool)('OZONE_APPVIEW_PUSH_EVENTS'),
pdsUrl: (0, common_1.envStr)('OZONE_PDS_URL'),
pdsDid: (0, common_1.envStr)('OZONE_PDS_DID'),
chatUrl: (0, common_1.envStr)('OZONE_CHAT_URL'),
chatDid: (0, common_1.envStr)('OZONE_CHAT_DID'),
dbPostgresUrl: (0, common_1.envStr)('OZONE_DB_POSTGRES_URL'),
dbPostgresSchema: (0, common_1.envStr)('OZONE_DB_POSTGRES_SCHEMA'),
dbPoolSize: (0, common_1.envInt)('OZONE_DB_POOL_SIZE'),
dbPoolMaxUses: (0, common_1.envInt)('OZONE_DB_POOL_MAX_USES'),
dbPoolIdleTimeoutMs: (0, common_1.envInt)('OZONE_DB_POOL_IDLE_TIMEOUT_MS'),
dbMaterializedViewRefreshIntervalMs: (0, common_1.envInt)('OZONE_DB_MATERIALIZED_VIEW_REFRESH_INTERVAL_MS'),
dbTeamProfileRefreshIntervalMs: (0, common_1.envInt)('OZONE_DB_TEAM_PROFILE_REFRESH_INTERVAL_MS'),
didPlcUrl: (0, common_1.envStr)('OZONE_DID_PLC_URL'),
didCacheStaleTTL: (0, common_1.envInt)('OZONE_DID_CACHE_STALE_TTL'),
didCacheMaxTTL: (0, common_1.envInt)('OZONE_DID_CACHE_MAX_TTL'),
cdnPaths: (0, common_1.envList)('OZONE_CDN_PATHS'),
adminDids: (0, common_1.envList)('OZONE_ADMIN_DIDS'),
moderatorDids: (0, common_1.envList)('OZONE_MODERATOR_DIDS'),
triageDids: (0, common_1.envList)('OZONE_TRIAGE_DIDS'),
adminPassword: (0, common_1.envStr)('OZONE_ADMIN_PASSWORD'),
signingKeyHex: (0, common_1.envStr)('OZONE_SIGNING_KEY_HEX'),
blobDivertUrl: (0, common_1.envStr)('OZONE_BLOB_DIVERT_URL'),
blobDivertAdminPassword: (0, common_1.envStr)('OZONE_BLOB_DIVERT_ADMIN_PASSWORD'),
verifierUrl: (0, common_1.envStr)('OZONE_VERIFIER_URL'),
verifierDid: (0, common_1.envStr)('OZONE_VERIFIER_DID'),
verifierPassword: (0, common_1.envStr)('OZONE_VERIFIER_PASSWORD'),
verifierIssuersToIndex: (0, common_1.envList)('OZONE_VERIFIER_ISSUERS_TO_INDEX'),
jetstreamUrl: (0, common_1.envStr)('OZONE_JETSTREAM_URL'),
};
};
exports.readEnv = readEnv;
//# sourceMappingURL=env.js.map