Skip to content

Commit

Permalink
update: workaround tool for bsky with ozone, endpoint option cares DO…
Browse files Browse the repository at this point in the history
…MAIN env var
  • Loading branch information
itaru2622 committed Jun 12, 2024
1 parent 7e7f68d commit da6ab7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ops-helper/apiImpl/subscribeLabels2BskyDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ import { Subscription } from '@atproto/xrpc-server'
import { Database } from '@atproto/bsky'
import yargs from 'yargs/yargs';

const dom = process.env.DOMAIN ?? 'mysky.local.com'

// options to support any deployment.
const opt = yargs(process.argv.slice(2)).options({
endpoint: { type: 'string', default: 'wss://ozone.mysky.local.com', description: 'subscribe endpoint for labels'},
endpoint: { type: 'string', default: 'wss://ozone.' + dom },
bskyDBUrl: { type: 'string', default: process.env.BSKY_DB_POSTGRES_URL || 'postgres://pg:password@localhost/postgres', description: 'appview postgresDB URL'},
bskyDBSchema:{ type: 'string', default: process.env.BSKY_DB_POSTGRES_SCHEMA || 'bsky', description: 'appview postgresDB Schema'},
tls: { type: 'string', default: '0', description: 'ignore TLS verification(NODE_TLS_REJECT_UNAUTHORIZED)'},
Expand Down

0 comments on commit da6ab7a

Please sign in to comment.