Deliver Step 1: Backend cleanup — secrets scrubbed, is_admin column, Telegram optional, crypto service, v4-v7 migrations, .env.example, setup.sh
This commit is contained in:
parent
8e630233f6
commit
cb892564d9
11 changed files with 212 additions and 37 deletions
19
setup.sh
Executable file
19
setup.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
echo "💪 Diligence — Setup"
|
||||
|
||||
if [ -f .env ]; then
|
||||
echo ".env already exists. Delete it first to regenerate."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SECRET=$(openssl rand -hex 32)
|
||||
cp .env.example .env
|
||||
sed -i "s/^SECRET_KEY=.*/SECRET_KEY=${SECRET}/" .env
|
||||
|
||||
echo "✅ .env created with random SECRET_KEY"
|
||||
echo ""
|
||||
echo "Next steps:"
|
||||
echo " docker compose up -d"
|
||||
echo " Open http://localhost"
|
||||
echo " Register your account"
|
||||
echo " Configure integrations via Settings or your AI agent"
|
||||
Loading…
Add table
Add a link
Reference in a new issue