docs: clarify docker-compose dollar sign escaping for bcrypt hashes

This commit is contained in:
Hördle Bot
2025-11-22 22:55:27 +01:00
parent aff752d4cb
commit fdc5594d69
3 changed files with 19 additions and 2 deletions

View File

@@ -17,5 +17,8 @@ bcrypt.hash(password, saltRounds, (err, hash) => {
}
console.log('Plaintext:', password);
console.log('Bcrypt Hash:', hash);
console.log('\n⚠ IMPORTANT FOR DOCKER COMPOSE:');
console.log('If you use this hash directly in docker-compose.yml, you MUST escape the $ signs:');
console.log('Docker Hash:', hash.replace(/\$/g, '$$$$'));
console.log('\nSet this hash as your ADMIN_PASSWORD environment variable.');
});