Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
79 lines (73 loc) · 3.6 KB
/
Copy path.env.example
File metadata and controls
79 lines (73 loc) · 3.6 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
# Parsar — repo-root environment template.
#
# Copy to .env and edit:
# cp .env.example .env
#
# Then choose your target:
# make dev # local hot-reload stack
# docker compose up -d # single-host / LAN deploy
#
# The production self-hosted compose (deploy/compose/compose.selfhost.yml)
# has its own template at deploy/compose/.env.example for image-tag /
# reverse-proxy knobs.
#
# Never commit the resulting .env — the repo-root .gitignore enforces this
# except for .env.example itself.
# -----------------------------------------------------------------------------
# Auth — Feishu / Lark OAuth
# -----------------------------------------------------------------------------
# Leave PARSAR_FEISHU_MOCK=true for local dev; the server skips the real
# OAuth handshake and seeds a fake session. Flip to false (and fill the
# real app credentials below) when pointing at a real Feishu tenant.
PARSAR_FEISHU_MOCK=true
PARSAR_FEISHU_APP_ID=
PARSAR_FEISHU_APP_SECRET=
PARSAR_FEISHU_REDIRECT_URI=
PARSAR_FEISHU_VERIFICATION_TOKEN=
# Optional — only needed if Feishu event encryption is enabled.
PARSAR_FEISHU_ENCRYPT_KEY=
# -----------------------------------------------------------------------------
# Database
# -----------------------------------------------------------------------------
# `make dev` starts a Postgres container and exports this URL for you.
# Override only if you want to point at an external Postgres.
DATABASE_URL=postgres://parsar:parsar@127.0.0.1:5432/parsar?sslmode=disable
# -----------------------------------------------------------------------------
# Deployment — LAN / multi-user (see docs/deploy/lan-deploy.md)
# -----------------------------------------------------------------------------
# PARSAR_MASTER_KEY encrypts every workspace-scoped bot credential
# (Feishu App Secret, Slack / Discord tokens, ...) at rest in the DB.
# It also enables QR provisioning for Feishu Bots.
# Do NOT change it once set — rotating this value makes previously
# stored bot credentials undecryptable and every bot needs re-binding.
#
# First-time setup: leave this empty and run `docker compose up` once.
# parsar-init auto-generates a fresh key and prints it on stdout; paste
# it back here, then `up -d` again. Or generate manually:
#
# echo "PARSAR_MASTER_KEY=$(openssl rand -hex 32)" >> .env
#
PARSAR_MASTER_KEY=
PARSAR_LOCAL_PORT=18080
PARSAR_PG_PORT=15432
# Your machine's LAN IP (e.g. 192.168.1.100). Leave empty for localhost-only.
PARSAR_HOST_IP=
# Set to parsar:local after running: make docker-build PARSAR_IMAGE=parsar PARSAR_IMAGE_TAG=local
PARSAR_SERVER_IMAGE=parsar:local
# -----------------------------------------------------------------------------
# Feishu Bot (optional — see docs/deploy/lan-deploy.md)
# -----------------------------------------------------------------------------
# Bot's own open_id (ou_xxx). Required for group chat @Bot to work.
PARSAR_FEISHU_DEFAULT_BOT_OPEN_ID=
# -----------------------------------------------------------------------------
# Core execution — configured independently from the product.
# See docs/deploy/product-core.md. Docker/E2B and model credentials belong to Core.
# Native development: absolute JSON file containing workspace/project/key-file bindings.
PARSAR_CORE_WORKSPACES_FILE=
# Compose deployment: directory mounted at /run/secrets/core.
PARSAR_CORE_CONFIG_DIR=
# -----------------------------------------------------------------------------
# Network proxy (optional — only if your host needs a proxy for internet)
# -----------------------------------------------------------------------------
HTTP_PROXY=
HTTPS_PROXY=