-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
68 lines (52 loc) · 2.23 KB
/
Copy path.env.example
File metadata and controls
68 lines (52 loc) · 2.23 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
65
66
67
68
# ============================================================
# ZLOG Environment Variables
# ============================================================
# Copy this file to create your .env:
# cp .env.example .env
#
# The .env file is not committed to Git, so secrets are safe.
# ============================================================
# ---- Server ----
# Port for the Hono server to listen on.
# The Vite dev server proxies API requests to this port.
PORT=3000
# Public URL of your blog (used for CORS and meta tags).
# - Production (Docker): your actual domain (e.g. https://myblog.example.com)
# - Development (npm run dev): http://localhost:5173 (Vite dev server)
SITE_URL=http://localhost:3000
# ---- Admin Account ----
# On first run, an admin account is created with these credentials.
# Admin login email
ADMIN_EMAIL=admin@example.com
# Admin login password (change this!)
ADMIN_PASSWORD=changeme
# Display name shown on the blog
ADMIN_DISPLAY_NAME=Blog Owner
# ---- Security ----
# Secret key for signing JWT tokens (change this!)
# Generate a secure random value:
# openssl rand -base64 32
JWT_SECRET=please-change-this
# ---- Federation (cross-blog subscription) ----
# How often to check subscribed blogs for new posts (in minutes)
WEBHOOK_SYNC_INTERVAL=15
# Allow localhost or private IPs for federation (useful for local development)
ALLOW_LOCAL_FEDERATION=false
# ---- OAuth Login (optional) ----
# Allow visitors to comment using their GitHub/Google accounts.
# Leave commented out if not needed.
# GitHub OAuth
# Setup: https://github.com/settings/developers → "New OAuth App"
# Authorization callback URL: {SITE_URL}/api/oauth/github/callback
# GITHUB_CLIENT_ID=please-change-this
# GITHUB_CLIENT_SECRET=please-change-this
# Google OAuth
# Setup: https://console.cloud.google.com/apis/credentials → "OAuth 2.0 Client"
# Authorized redirect URI: {SITE_URL}/api/oauth/google/callback
# GOOGLE_CLIENT_ID=please-change-this
# GOOGLE_CLIENT_SECRET=please-change-this
# ---- GIPHY Stickers (optional) ----
# Enables the sticker picker button in the markdown editor toolbar.
# Get an API key at: https://developers.giphy.com/dashboard/
# Leave commented out to hide the sticker button entirely.
# VITE_GIPHY_API_KEY=your_giphy_api_key_here