-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (50 loc) · 2.33 KB
/
.env.example
File metadata and controls
59 lines (50 loc) · 2.33 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
# ============================================================
# Armbian Website — Environment Variables
# Copy to .env and fill in real values: cp .env.example .env
# ============================================================
# === Armbian API ===
DATA_SYNC_INTERVAL_MS=14400000
CORS_ORIGINS=http://localhost:3000
PUBLIC_API_URL=http://localhost:3001
LOG_LEVEL=info
# === Public site URL (used as base for Open Graph absolute URLs) ===
# NEXT_PUBLIC_SITE_URL=https://www.armbian.com
# === Multi-domain locale routing (optional) ===
# When "true", armbian.cn forces zh and armbian.de forces de.
# The primary domain hosts all other locales via /<locale> prefix.
# NEXT_PUBLIC_DOMAIN_LOCALE_ROUTING=true
# NEXT_PUBLIC_PRIMARY_DOMAIN=armbian.com
# === PostgreSQL (required) ===
POSTGRES_DB=payload
POSTGRES_USER=payload
POSTGRES_PASSWORD=replace-with-strong-password
# === Payload CMS (required) ===
PAYLOAD_SECRET=replace-with-a-64-char-random-hex-string
# === Caddy reverse proxy ===
# Defaults: HTTP on :80 (website) and :8080 (API) for any hostname.
# For production, set real domains — Caddy obtains TLS certs automatically.
#
# Examples:
# Dev / test server (default): leave empty
# Netbird / reverse proxy: WWW_HOSTNAME=http://site.example.com
# API_HOSTNAME=http://api.example.com
# Production (auto HTTPS): WWW_HOSTNAME=armbian.com, armbian.cn, armbian.de
# API_HOSTNAME=api.armbian.com
# WWW_REDIRECT_HOSTS=www.armbian.com, www.armbian.cn, www.armbian.de
# CADDY_EMAIL=admin@armbian.com
# WWW_HOSTNAME=:80
# API_HOSTNAME=:8080
# API_HOST_PORT=8080
# CADDY_EMAIL=admin@localhost
# Canonical-host 301 redirects (www.* → apex). Comma-separated list of
# hostnames Caddy should 301 to their apex. Leave unset in dev.
# WWW_REDIRECT_HOSTS=www.armbian.com, www.armbian.cn, www.armbian.de
# === Legacy /wp-content (optional) ===
# Host path served at /wp-content/* on armbian.com and www.armbian.com
# only. Leave unset to disable.
# WP_CONTENT_DIR=./legacy/wp-content
# === Authentik OIDC (optional — leave empty to use local login) ===
# OIDC_CLIENT_ID=armbian-cms
# OIDC_CLIENT_SECRET=your-client-secret
# OIDC_ISSUER_URL=https://auth.yourdomain.com/application/o/armbian
# OIDC_ALLOWED_DOMAINS=armbian.com