Files
AdventureLog/backend/server/.env.example
Sean Morley 2aa09dc999 Add Endurain integration support and related features
- Introduced the Endurain integration, allowing users to connect their self-hosted Endurain instance for activity browsing and GPX import.
- Added `EndurainIntegration` model, serializer, and viewset to manage user connections and activities.
- Implemented MFA support for Endurain login, including token handling and validation.
- Enhanced activity handling in `ActivityViewSet` to prioritize user-provided elevation data over GPX-derived values.
- Updated environment configuration and documentation to include Endurain integration details.
- Added tests for Endurain services and integration functionality to ensure reliability and correctness.
- Improved throttling for Endurain authentication to enhance security and performance.
2026-07-19 18:31:20 -04:00

75 lines
3.5 KiB
Plaintext

# AdventureLog — Backend (local development)
# Copy to .env: cp .env.example .env
# Used when running `python manage.py` from backend/server/
# ── Database ────────────────────────────────────────────
PGHOST=
PGDATABASE=
PGUSER=
PGPASSWORD=
# ── Django ──────────────────────────────────────────────
SECRET_KEY=pleasechangethisbecauseifyoudontitwillbeverybadandyouwillgethackedinlessthanaminuteguaranteed
PUBLIC_URL=http://127.0.0.1:8000
FRONTEND_URL=http://localhost:3000
DEBUG=True
ENABLE_RATE_LIMITS=False
# ── Email ───────────────────────────────────────────────
EMAIL_BACKEND=console
# ═══════════════════════════════════════════════════════
# Optional — uncomment and edit as needed
# ═══════════════════════════════════════════════════════
# ── Registration & auth ─────────────────────────────────
# DISABLE_REGISTRATION=True
# DISABLE_REGISTRATION_MESSAGE=Registration is disabled for this instance of AdventureLog.
# SOCIALACCOUNT_ALLOW_SIGNUP=False
# FORCE_SOCIALACCOUNT_LOGIN=False
# ACCOUNT_EMAIL_VERIFICATION=none # none | optional | mandatory
# ── Media storage (S3) ──────────────────────────────────
# Docs: https://adventurelog.app/docs/configuration/s3_storage.html
# MEDIA_STORAGE=s3
# AWS_ACCESS_KEY_ID=
# AWS_SECRET_ACCESS_KEY=
# AWS_STORAGE_BUCKET_NAME=
# AWS_S3_ENDPOINT_URL=
# AWS_S3_REGION_NAME=auto
# ── Google Maps ─────────────────────────────────────────
# Docs: https://adventurelog.app/docs/configuration/google_maps_integration.html
# GOOGLE_MAPS_API_KEY=
# ── Email (SMTP) ────────────────────────────────────────
# Docs: https://adventurelog.app/docs/configuration/email.html
# EMAIL_BACKEND=email
# EMAIL_HOST=smtp.gmail.com
# EMAIL_USE_TLS=True
# EMAIL_PORT=587
# EMAIL_USE_SSL=False
# EMAIL_HOST_USER=
# EMAIL_HOST_PASSWORD=
# DEFAULT_FROM_EMAIL=
# ── Strava ──────────────────────────────────────────────
# Docs: https://adventurelog.app/docs/configuration/strava_integration.html
# STRAVA_CLIENT_ID=
# STRAVA_CLIENT_SECRET=
# ── Endurain ────────────────────────────────────────────
# Docs: https://adventurelog.app/docs/configuration/endurain_integration.html
# Connect via Settings → Integrations using Endurain username/password (MFA supported).
# ── Demo database (Docker) ──────────────────────────────
# docker run --name adventurelog-development \
# -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=admin -e POSTGRES_DB=adventurelog \
# -p 5432:5432 -d postgis/postgis:15-3.3
# PGHOST=localhost
# PGDATABASE=adventurelog
# PGUSER=admin
# PGPASSWORD=admin