-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
58 lines (45 loc) · 2.63 KB
/
.env.example
File metadata and controls
58 lines (45 loc) · 2.63 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
# EasyRelocate (repo root) — unified env file
#
# Copy this file to `.env` and fill in your own keys.
# Never commit `.env` (it contains secrets).
###############################################################################
# Frontend (Vite / browser)
###############################################################################
# Required: Browser API key (HTTP referrer-restricted)
VITE_GOOGLE_MAPS_API_KEY="YOUR_BROWSER_KEY"
# Optional: Backend API base URL (defaults to http://127.0.0.1:8000)
# If `localhost` doesn't work on your machine (IPv6-only), use `http://127.0.0.1:8000`.
VITE_API_BASE_URL="http://127.0.0.1:8000"
# Optional: Disable Google Maps loading (useful for CI)
# VITE_DISABLE_GOOGLE_MAPS="1"
###############################################################################
# Backend (FastAPI / server)
###############################################################################
# Optional: Server API key (for Geocoding API server-to-server calls)
# If you don't set this, the backend will fall back to Nominatim (OSM) for geocoding.
GOOGLE_MAPS_API_KEY="YOUR_SERVER_KEY"
# Optional: Force geocoding provider (google or nominatim)
GEOCODING_PROVIDER="google"
# Optional: Enable/disable all geocoding calls
ENABLE_GEOCODING="1"
# Optional: LLM extraction for selected posts (Chrome extension → "Add selected post")
# Get a key from OpenRouter and put it here.
OPENROUTER_API_KEY="YOUR_OPENROUTER_KEY"
# Optional: Choose a model on OpenRouter
OPENROUTER_MODEL="z-ai/glm-4.5-air:free"
# Optional: Database URL (default is an auto-created SQLite DB under backend/)
# DATABASE_URL="sqlite+pysqlite:////absolute/path/to/easyrelocate.db"
# Optional: keep both local + cloud DB URLs, and select via EASYRELOCATE_DB.
# EASYRELOCATE_DB="local" # local|cloud (default: local)
# DATABASE_URL_LOCAL="sqlite+pysqlite:////absolute/path/to/easyrelocate.db"
# DATABASE_URL_CLOUD="postgresql+psycopg://DB_USER:DB_PASSWORD@/DB_NAME?host=/cloudsql/INSTANCE_CONNECTION_NAME"
# Optional: CORS allowlist for browsers (comma-separated).
# In production, set this to your Vercel domain(s).
# CORS_ALLOW_ORIGINS="https://your-vercel-app.vercel.app,https://easyrelocate.yourdomain.com"
# Optional: Allow anonymous users to get a 30-day workspace token from the web UI.
# Production note: enable only if you also add protection (rate limiting / bot protection).
# ENABLE_PUBLIC_WORKSPACE_ISSUE="1"
# PUBLIC_WORKSPACE_TTL_DAYS="30"
# Optional: Postgres (Cloud SQL / Cloud Run examples)
# DATABASE_URL="postgresql+psycopg://DB_USER:DB_PASSWORD@/DB_NAME?host=/cloudsql/INSTANCE_CONNECTION_NAME"
# DATABASE_URL="postgresql+psycopg://DB_USER:DB_PASSWORD@DB_HOST:5432/DB_NAME"