-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
41 lines (30 loc) · 1.33 KB
/
env.example
File metadata and controls
41 lines (30 loc) · 1.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
# GraphQL Proxy Configuration
# Server port
PORT=5001
# Bind host for the HTTP server (use 127.0.0.1 for local-only)
BIND_HOST=0.0.0.0
# Upstream GraphQL endpoint (source of truth)
UPSTREAM_GRAPHQL_ENDPOINT=https://example.com/graphql
# JWT token for authenticated mutations (from WPGraphQL JWT Authentication)
UPSTREAM_AUTH_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
# GraphQL mode:
# - GETMODE: read-only, mutations blocked (default)
# - SETMODE: mutations execute + save locally, queue when offline
# - CRUDMODE: bidirectional sync (future, requires websockets)
GRAPHQL_MODE=GETMODE
# Cache directory for GraphQL responses
CACHE_DIR=./data/graphql-cache
# Queue directory for pending mutations (SETMODE)
QUEUE_DIR=./data/mutation-queue
# Local database for CMS offline access
LOCAL_DB_PATH=./data/local-db.json
# Path base for relative paths (CACHE_DIR/QUEUE_DIR/LOCAL_DB_PATH):
# - PATHS_RELATIVE_TO=cwd => resolve relative paths from the working directory (default)
# - PATHS_RELATIVE_TO=script => resolve relative paths from the directory of the executable file
# - PATHS_BASE_DIR=... => explicit base directory (overrides PATHS_RELATIVE_TO)
PATHS_RELATIVE_TO=cwd
# PATHS_BASE_DIR=./
# CORS origin (use * for development)
CORS_ORIGIN=*
# Note:
# - In Docker / Nixpacks you can also set API_PORT, but the server itself reads PORT.