-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.distributed.example
More file actions
111 lines (101 loc) · 3.13 KB
/
Copy path.env.distributed.example
File metadata and controls
111 lines (101 loc) · 3.13 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Copy this file to .env on every machine and replace the 10.0.0.x values.
# Use private-network IPs for service-to-service traffic. Keep secrets identical on all machines.
DB_USER=typst
DB_PASSWORD=replace-me
DB_NAME=typst_editor
DB_HOST=10.0.0.15
DB_PORT=5432
DB_PUBLISH_PORT=5432
WEB_HOST=10.0.0.20
WEB_PUBLISH_PORT=3000
API_HOST=10.0.0.10
API_PORT=8000
API_PUBLISH_PORT=8000
COMPILER_HOST=10.0.0.11
COMPILER_PORT=8001
COMPILER_PUBLISH_PORT=8001
PREVIEW_HOST=10.0.0.12
PREVIEW_PORT=8002
PREVIEW_PUBLISH_PORT=8002
REALTIME_HOST=10.0.0.13
REALTIME_PORT=8003
REALTIME_PUBLISH_PORT=8003
# Browser access mode A: expose only web, and let web proxy API/preview/realtime.
VITE_API_URL=
VITE_API_HOST=
VITE_PREVIEW_URL=
VITE_PREVIEW_HOST=
VITE_REALTIME_URL=
VITE_REALTIME_HOST=
API_PROXY_HOST=10.0.0.10
API_PROXY_PORT=8000
PREVIEW_PROXY_HOST=10.0.0.12
PREVIEW_PROXY_PORT=8002
PREVIEW_PROXY_TARGETS=
REALTIME_PROXY_HOST=10.0.0.13
REALTIME_PROXY_PORT=8003
REALTIME_PROXY_TARGETS=
# Browser access mode B: browser connects to each service directly. Fill these instead of proxy hosts.
# VITE_API_SCHEME=http
# VITE_API_HOST=10.0.0.10
# VITE_API_PORT=8000
# VITE_PREVIEW_SCHEME=http
# VITE_PREVIEW_HOST=10.0.0.12
# VITE_PREVIEW_PORT=8002
# VITE_REALTIME_SCHEME=ws
# VITE_REALTIME_HOST=10.0.0.13
# VITE_REALTIME_PORT=8003
# Service-to-service addresses. Full URL wins; otherwise scheme/host/port are used.
COMPILER_URL=
COMPILER_SCHEME=http
COMPILER_TIMEOUT_SECONDS=10
PREVIEW_URL=
PREVIEW_URLS=
PREVIEW_BROWSER_URL=
PREVIEW_BROWSER_URLS=
PREVIEW_SCHEME=http
PREVIEW_INTERNAL_URL=
PREVIEW_INTERNAL_URLS=
PREVIEW_INTERNAL_SCHEME=http
PREVIEW_INTERNAL_HOST=10.0.0.12
PREVIEW_INTERNAL_PORT=8002
REALTIME_URL=
REALTIME_URLS=
REALTIME_BROWSER_URL=
REALTIME_BROWSER_URLS=
REALTIME_SCHEME=ws
REALTIME_INTERNAL_URL=
REALTIME_INTERNAL_URLS=
REALTIME_INTERNAL_SCHEME=http
REALTIME_INTERNAL_HOST=10.0.0.13
REALTIME_INTERNAL_PORT=8003
API_INTERNAL_URL=
API_INTERNAL_SCHEME=http
API_INTERNAL_HOST=10.0.0.10
API_INTERNAL_PORT=8000
# Preview sharding example. Keep browser/internal lists in the same order.
# PREVIEW_BROWSER_URLS=http://10.0.0.12:8002,http://10.0.0.16:8002
# PREVIEW_INTERNAL_URLS=http://10.0.0.12:8002,http://10.0.0.16:8002
# Realtime sharding example. Keep both lists in the same order.
# REALTIME_BROWSER_URLS=ws://10.0.0.13:8003,ws://10.0.0.14:8003
# REALTIME_INTERNAL_URLS=http://10.0.0.13:8003,http://10.0.0.14:8003
CORS_ALLOW_ORIGINS=*
REALTIME_SECRET=replace-me-realtime-secret
PREVIEW_SECRET=replace-me-preview-secret
WORKSPACE_DIR=/workspace/projects
PREVIEW_WORKSPACE_DIR=/tmp/typst-preview-workspaces
SESSION_IDLE_SECONDS=1800
TYPST_VERSION=0.14.2
TINYMIST_VERSION=0.14.8
DOCKER_SOURCE_MODE=auto
# Optional build/source overrides.
# POSTGRES_IMAGE=postgres:16
# NODE_BASE_IMAGE=node:22-alpine
# PYTHON311_BASE_IMAGE=python:3.11-slim
# PYTHON312_BASE_IMAGE=python:3.12-slim
# NPM_REGISTRY=
# PIP_INDEX_URL=
# PIP_TRUSTED_HOST=
# APT_MIRROR=
# TYPST_DOWNLOAD_URL=https://github.com/typst/typst/releases/download/v0.14.2/typst-x86_64-unknown-linux-musl.tar.xz
# TINYMIST_DOWNLOAD_URL=https://github.com/Myriad-Dreamin/tinymist/releases/download/v0.14.8/tinymist-x86_64-unknown-linux-musl.tar.gz