-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy path.env.example
More file actions
38 lines (31 loc) · 1.53 KB
/
Copy path.env.example
File metadata and controls
38 lines (31 loc) · 1.53 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
# ReactPress — local development template
# Copy to `.env` in the repo root: cp .env.example .env
# Do not commit `.env` (secrets and machine-specific paths belong there only).
# `reactpress init` usually generates this for you; use this file when contributing to the monorepo.
# --- Database (default: embedded SQLite, no Docker) ---
# DB_TYPE=sqlite uses DB_DATABASE as the SQLite file path.
# For MySQL via Docker, use reactpress init / embedded-docker and DB_HOST/DB_PORT/DB_USER/DB_PASSWD instead.
DB_TYPE=sqlite
DB_DATABASE=.reactpress/reactpress.db
# --- API server (NestJS) ---
SERVER_PORT=3002
# Public API origin used to build media URLs (`{SERVER_SITE_URL}/public/uploads/...`).
# Required in production (e.g. https://api.example.com). Missing value used to produce `undefined/public/uploads/...`.
SERVER_SITE_URL=http://localhost:3002
# Optional override for CDN / separate static host (no trailing slash):
# SERVER_PUBLIC_UPLOAD_URL=https://cdn.example.com/uploads
SERVER_API_PREFIX=/api
# --- Visitor theme (Next.js) public URL ---
CLIENT_SITE_URL=http://localhost:3001
# --- Media uploads (relative to project root) ---
REACTPRESS_UPLOAD_DIR=uploads
# --- Bootstrap admin (first start only; change after login) ---
ADMIN_USER=admin
ADMIN_PASSWD=admin
# --- CLI / server UI language: en | zh ---
REACTPRESS_LANG=en
# --- Docs site (Docusaurus) — optional overrides ---
# DOCS_SITE_URL=https://docs.gaoredu.com
# DOCS_ALGOLIA_APP_ID= # default baked into docs/src/seo/algolia.ts
# DOCS_ALGOLIA_API_KEY=
# DOCS_ALGOLIA_INDEX_NAME=