Init first files

This commit is contained in:
2026-02-12 09:09:13 +01:00
parent 6535699b0e
commit d1d8ae43a4
61 changed files with 2424 additions and 0 deletions

27
ops/.env.example Normal file
View File

@@ -0,0 +1,27 @@
# App
APP_NAME=NexaPG Monitor
ENVIRONMENT=dev
LOG_LEVEL=INFO
# Core DB
DB_NAME=nexapg
DB_USER=nexapg
DB_PASSWORD=nexapg
DB_PORT=5433
# Backend
BACKEND_PORT=8000
JWT_SECRET_KEY=change_this_super_secret
JWT_ALGORITHM=HS256
JWT_ACCESS_TOKEN_MINUTES=15
JWT_REFRESH_TOKEN_MINUTES=10080
# Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
ENCRYPTION_KEY=REPLACE_WITH_FERNET_KEY
CORS_ORIGINS=http://localhost:5173,http://localhost:8080
POLL_INTERVAL_SECONDS=30
INIT_ADMIN_EMAIL=admin@example.com
INIT_ADMIN_PASSWORD=ChangeMe123!
# Frontend
FRONTEND_PORT=5173
VITE_API_URL=http://localhost:8000/api/v1

3
ops/scripts/down.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
set -e
docker compose down

3
ops/scripts/logs.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
set -e
docker compose logs -f --tail=200

3
ops/scripts/migrate.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
set -e
docker compose exec backend alembic upgrade head

3
ops/scripts/up.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
set -e
docker compose up -d --build