feat(auth): harden session management and security

- Implement server-side session revocation on logout
- Add IP extraction utility and admin setup error handling
- Improve error codes and response consistency for auth endpoints
- Refine landing page redirect logic to handle transient DB outages
- Update deployment documentation and configuration defaults
This commit is contained in:
Team Dark Devil committed 2026-11-19 20:22:01 +06:00
1 parent 935f12a1e9
commit 89e4d68690
81 files changed
+11530 -6916

No files matched your search

+7 -1
View File
@@ -18,6 +18,12 @@ DATASTACK_ADMIN_EMAIL=admin@datastack.dev
# Shared Redis Buffer (optional; enables cross-process buffering & distributed flush locks)
# REDIS_URL=redis://127.0.0.1:6379
# Shared Partitioned CSV Storage Directory (optional; defaults to ./storage/data)
# Set an absolute path so Port 3000 (Next.js) and Port 4000 (Ingestion) always share one storage root
# DATASTACK_STORAGE_DIR=/var/lib/datastack/storage/data
# Service Networking
PORT_SOCKET=4000
INGESTION_INTERNAL_URL=http://127.0.0.1:4000
INGESTION_INTERNAL_URL=http://127.0.0.1:4000
# Optional comma-separated browser CORS origin allowlist for Port 4000 ingestion/Socket.IO (defaults to wildcard if unset)
# DATASTACK_CORS_ORIGINS=https://console.example.com,https://admin.example.com