Configure admin password outside version control

This commit is contained in:
Vladimir Kutkovoy committed 2026-11-15 11:35:33 +00:00
1 parent 9cc7f2a2de
commit 61c7999c48
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -8,6 +8,6 @@ if target.exists():
else:
target.touch(mode=0o600, exist_ok=False)
target.write_text(''.join(f'{name}={secrets.token_hex(size)}\n' for name, size in [
('MYSQL_PASSWORD', 24), ('MYSQL_ROOT_PASSWORD', 24), ('JWT_KEY', 48),
('MYSQL_PASSWORD', 24), ('MYSQL_ROOT_PASSWORD', 24), ('JWT_KEY', 48), ('ADMIN_PASSWORD', 24),
]))
print('Created .env.local.')