-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
53 lines (41 loc) · 1.97 KB
/
.env.example
File metadata and controls
53 lines (41 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copy to ".env" at the repository root (Docker Compose and local tooling load it from here).
# Django also loads this file via backend/setrsoft/settings.py (repo root).
#Docker (for production)
DOCKER_NETWORK_NAME=default
# --- PORTS & IP ---
SERVER_IP=setrsoft.com
PORT_FRONTEND=80
PORT_BACKEND=8000
POSTGRES_PORT=5432
# --- Django ---
# Required in production. Use a long random string.
SECRET_KEY=your-secret-key
CORS_ALLOWED_ORIGINS=http://193.70.41.3,https://setrsoft.com,https://www.setrsoft.com
# Comma-separated hostnames Django may serve (no spaces). Include your domain in production.
ALLOWED_HOSTS=localhost,127.0.0.1,setrsoft.com,www.setrsoft.com
# Development: True. Production: False.
DEBUG=True
# Set to 1/true/yes when Django sits behind a reverse proxy (Nginx, load balancer) so
# USE_X_FORWARDED_HOST and X-Forwarded-Proto are honored. Typical in production.
TRUST_PROXY=1
# --- PostgreSQL (Django DATABASES + Docker "db" service) ---
POSTGRES_DB=setrsoft
POSTGRES_USER=setrsoft
POSTGRES_PASSWORD=changeme
# Host running PostgreSQL: use "localhost" for Django on the host; Docker Compose overrides
# to "db" for the backend container.
POSTGRES_HOST=localhost
# --- Frontend (Vite) ---
# Base URL for API requests from the browser. Leave empty when the SPA and API share the
# same origin (e.g. production Nginx serves / and proxies /api/ to Django).
# For local Vite (e.g. :5173) talking to Django on :8000, set e.g. http://localhost:8000
VITE_API_BASE=
# --- Hugging Face CDN ---
# Override to pin a specific branch or commit hash (e.g. resolve/v1 or resolve/<sha>).
# Defaults to "main" if not set.
HOLDS_CDN_BASE=https://huggingface.co/datasets/setrsoft/climbing-holds/resolve/main
WALLS_CDN_BASE=https://huggingface.co/datasets/setrsoft/climbing-walls/resolve/main
# --- PostHog analytics ---
# Project API Key (Project Settings → Project API Key). Leave empty to disable.
VITE_PUBLIC_POSTHOG_PROJECT_TOKEN=phc_xxxxxxxxxxxxxxxxxxxx
VITE_PUBLIC_POSTHOG_HOST=https://eu.i.posthog.com