Something went wrong. Try again.
Substratum: DID-native private IPFS infrastructure for the AT Protocol. Your identity is the access key. substratum.cloud
Something went wrong. Try again.
1234567891011121314151617181920#!/usr/bin/env node/** * Print shell assignments that set POSTGRES_USER and POSTGRES_PASSWORD_URLENCODED * with URL-encoded userinfo. Compose interpolates POSTGRES_PASSWORD_URLENCODED into * DATABASE_URL and DATABASE_ADMIN_URL. POSTGRES_PASSWORD is left untouched so that * services like tranquil-pds-db-init that use psql directly get the raw password. * A raw password that contains / @ : or # is parsed as the URL path or port * ("invalid port number") if used unencoded in a connection string. * * DISCOURSE_POSTGRES_PASSWORD stays the raw Discourse password (CI and .env). * This script does not change it. * * Usage: eval "$(node scripts/lib/encode-postgres-url-env.mjs)" */const user = process.env.POSTGRES_USER || 'fileorbit';const password = process.env.POSTGRES_PASSWORD || 'fileorbit_local_dev_password';
process.stdout.write(`POSTGRES_USER=${encodeURIComponent(user)}\n`);process.stdout.write(`POSTGRES_PASSWORD_URLENCODED=${encodeURIComponent(password)}\n`);