Files
Filamenteka/scripts/generate-password-hash.js
DaX a2252fa923 Fix production environment variables
- Remove old Confluence variables
- Add NEXT_PUBLIC_API_URL for API access

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-20 00:11:36 +02:00

13 lines
361 B
JavaScript

const bcrypt = require('bcryptjs');
const password = process.argv[2];
if (!password) {
console.error('Usage: node generate-password-hash.js <password>');
process.exit(1);
}
const hash = bcrypt.hashSync(password, 10);
console.log('Password hash:', hash);
console.log('\nAdd this to your terraform.tfvars:');
console.log(`admin_password_hash = "${hash}"`);