af1b8e9956
- Updated Dockerfile to improve security with a non-root user and added health checks. - Modified docker-compose.yml to set containers as read-only, restrict ports to localhost, and implement health checks. - Enhanced .env.example with additional environment variables for security and configuration. - Improved FastAPI application with middleware for security headers, CORS, and body size limits. - Refactored authentication flow in auth.py to include state validation and improved error handling. - Added rate limiting to various endpoints to prevent abuse. - Updated researcher and publication handling to ensure better validation and error management.
58 lines
649 B
Plaintext
58 lines
649 B
Plaintext
# --- GLOBAL ---
|
|
.env
|
|
*.env
|
|
.env.*
|
|
!.env.example
|
|
|
|
# --- PYTHON BACKEND ---
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
*.pyd
|
|
*.sqlite3
|
|
*.db
|
|
*.log
|
|
|
|
# Virtual environments
|
|
venv/
|
|
.venv/
|
|
env/
|
|
ENV/
|
|
|
|
# FastAPI / Uvicorn
|
|
*.pid
|
|
|
|
# Test / type checkers
|
|
.pytest_cache/
|
|
.mypy_cache/
|
|
.ruff_cache/
|
|
.coverage
|
|
htmlcov/
|
|
|
|
# --- NODE FRONTEND ---
|
|
node_modules/
|
|
dist/
|
|
build/
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
pnpm-debug.log*
|
|
|
|
# Vite cache
|
|
.vite/
|
|
vite.config.ts.timestamp*
|
|
vite.config.js.timestamp*
|
|
|
|
# --- DOCKER ---
|
|
# Avoid local volumes or generated files
|
|
docker-data/
|
|
postgres_data/
|
|
redis_data/
|
|
|
|
# --- OS / EDITOR ---
|
|
.DS_Store
|
|
Thumbs.db
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
.cursorrules |