forked from hotosm/drone-tm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
64 lines (53 loc) · 2.17 KB
/
.env.example
File metadata and controls
64 lines (53 loc) · 2.17 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
54
55
56
57
58
59
60
61
62
63
64
# DroneTM .env template
#
# This file is processed by `just config generate-dotenv`.
# The generator runs `./envsubst` twice to resolve nested variables inside defaults.
#
# Defaults below favor local development.
# For production, export environment variables before running generate-dotenv or edit `.env`.
# ---- Core ----
DEBUG=${DEBUG:-True}
LOG_LEVEL=${LOG_LEVEL:-INFO}
BACKEND_WEB_APP_PORT=${BACKEND_WEB_APP_PORT:-8000}
FRONTEND_WEB_APP_PORT=${FRONTEND_WEB_APP_PORT:-3040}
# Public domain used to derive backend PUBLIC_BASE_URL (scheme + host).
DOMAIN=${DOMAIN:-}
SECRET_KEY=${SECRET_KEY:-"superdupersecretkey"}
# Defaults to simply '/api', but can be overriden if hosted on a different domain
VITE_API_URL=${VITE_API_URL}
# ---- Database ----
POSTGRES_HOST=${POSTGRES_HOST:-db}
POSTGRES_DB=${POSTGRES_DB:-dtm_db}
POSTGRES_USER=${POSTGRES_USER:-dtm}
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-dtm}
# ---- S3 / Object storage ----
#
# Two endpoints are intentionally supported:
# - S3_ENDPOINT_UPLOAD: presigned upload host (can be S3 Transfer Acceleration)
# - S3_ENDPOINT_DOWNLOAD: browser downloads/display (can be CloudFront)
#
# In many deployments these will be identical.
S3_ENDPOINT_UPLOAD=${S3_ENDPOINT_UPLOAD:-http://localhost:9000}
S3_ENDPOINT_DOWNLOAD=${S3_ENDPOINT_DOWNLOAD:-$S3_ENDPOINT_UPLOAD}
S3_BUCKET_NAME=${S3_BUCKET_NAME:-dtm-bucket}
S3_ACCESS_KEY=${S3_ACCESS_KEY:-dtm_user}
S3_SECRET_KEY=${S3_SECRET_KEY:-somelongpassword}
# ---- Auth (frontend login) ----
GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID:-}
GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET:-}
GOOGLE_LOGIN_REDIRECT_URI=${GOOGLE_LOGIN_REDIRECT_URI:-http://localhost:$FRONTEND_WEB_APP_PORT/auth}
# ---- External APIs ----
# ODM endpoint (NodeODM typically) for processing
ODM_ENDPOINT=${ODM_ENDPOINT:-http://nodeodm:9900}
# For DEM downloads used in flightplan altitude adjustment
JAXA_AUTH_TOKEN=${JAXA_AUTH_TOKEN:-}
# ---- Optional monitoring ----
MONITORING=${MONITORING:-}
SENTRY_DSN=${SENTRY_DSN:-}
# ---- Optional email ----
SMTP_HOST=${SMTP_HOST:-}
SMTP_PORT=${SMTP_PORT:-587}
SMTP_USER=${SMTP_USER:-}
SMTP_PASSWORD=${SMTP_PASSWORD:-}
EMAILS_FROM_EMAIL=${EMAILS_FROM_EMAIL:-}
EMAILS_FROM_NAME=${EMAILS_FROM_NAME:-"Drone Tasking Manager"}