-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
167 lines (129 loc) · 4.62 KB
/
example.env
File metadata and controls
167 lines (129 loc) · 4.62 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# ============================================================
# dnai-wikigen — Environment Variables
# ============================================================
# Copy to .env and fill in your values:
# cp example.env .env
#
# NEVER commit .env to git. Only example.env is tracked.
# ============================================================
# ------------------------------------------------------------
# Foundry / Smart Contracts (Base Network)
# ------------------------------------------------------------
# Etherscan V2 API key (works for BaseScan verification)
# Get one at: https://etherscan.io/myapikey
ETHERSCAN_API_KEY=
# RPC endpoints
BASE_SEPOLIA_RPC_URL=https://sepolia.base.org
BASE_MAINNET_RPC_URL=https://mainnet.base.org
ANVIL_RPC_URL=http://127.0.0.1:8545
# Deployed contract addresses (populated after deployment)
ESCROW_ADDRESS=
JUDGE_ADDRESS=
# Foundry keystore account name (used with --account flag)
FOUNDRY_KEYSTORE_ACCOUNT=dev
# ------------------------------------------------------------
# Phala Cloud / TEE (dstack)
# ------------------------------------------------------------
# Phala Cloud API key (prefixed with phak_)
# Get one at: https://cloud.phala.com
PHALA_CLOUD_API_KEY=
# Phala Cloud API endpoint (default: https://cloud.phala.com)
PHALA_CLOUD_API_PREFIX=
# Phala credentials directory (default: ~/.phala-cloud)
PHALA_CLOUD_DIR=
# Phala CLI update channel: latest | beta
PHALA_UPDATE_CHANNEL=latest
# CVM deployment settings
PHALA_APP_NAME=
PHALA_INSTANCE_TYPE=tdx.medium
PHALA_REGION=
PHALA_CVM_ID=
PHALA_DISK_SIZE=20G
# KMS configuration: phala | ethereum | base
PHALA_KMS_TYPE=phala
# dstack / TEE runtime
DSTACK_SIMULATOR_ENDPOINT=http://localhost:8090
DSTACK_SOCKET=/var/run/dstack.sock
DSTACK_MODE=socket
# ------------------------------------------------------------
# AI / LLM API Keys (via OpenRouter)
# ------------------------------------------------------------
# OpenRouter API key
# Get one at: https://openrouter.ai/keys
OPENROUTER_API_KEY=
# Model selection (optional overrides)
OPENROUTER_MODEL=
# ------------------------------------------------------------
# Docker / Container Registry
# ------------------------------------------------------------
# Docker Hub or GHCR credentials (for pushing TEE images)
DOCKER_REGISTRY_USERNAME=
DOCKER_REGISTRY_PASSWORD=
DOCKER_IMAGE=
# Docker host (for remote Docker engines / dstack executor)
DOCKER_HOST=
# ------------------------------------------------------------
# Blockchain KMS (for Ethereum/Base KMS mode)
# ------------------------------------------------------------
# Private key for on-chain KMS registration
KMS_PRIVATE_KEY=
# RPC URL for KMS chain
KMS_RPC_URL=
# ------------------------------------------------------------
# Application / Agent Configuration
# ------------------------------------------------------------
# Server port for TEE services
PORT=3000
# Judge service
JUDGE_PRIVATE_KEY=
JUDGE_PORT=3003
# Agent service
AGENT_HOST=localhost
AGENT_PORT=3001
CHAT_PORT=3001
# Development key (for local testing bypass)
DEV_KEY=
# ------------------------------------------------------------
# Infrastructure / DNS / CDN
# ------------------------------------------------------------
# Cloudflare (DNS management for TEE domains)
CLOUDFLARE_API_TOKEN=
# Domain configuration
DOMAIN=
CORS_ORIGIN=
GATEWAY_DOMAIN=
# TLS / Auth
JWT_SECRET=
CERTBOT_EMAIL=
# Database
PG_PASSWORD=
DB_PATH=./data.db
# ------------------------------------------------------------
# Integrations / Notifications
# ------------------------------------------------------------
# Telegram bot (deployment notifications)
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=
# GitHub Personal Access Token (Fine-grained)
# Used for:
# 1. GitHub Container Registry (GHCR) — pushing Docker images (docker login ghcr.io)
# 2. GitHub API — reading repos, creating issues via Octokit
# 3. CI/CD workflows — standard secrets.GITHUB_TOKEN (auto-provided by GitHub Actions)
#
# Required scopes (Fine-grained PAT):
# read:packages / write:packages — Push/pull container images to GHCR
# contents: read — Read repo contents
# issues: read/write — If agents need to create/read issues
#
# Create one at: GitHub Settings → Developer Settings → Personal Access Tokens → Fine-grained tokens
# Scope it to only the repos this project needs.
GITHUB_TOKEN=
# ------------------------------------------------------------
# Executor / Runtime Mode
# ------------------------------------------------------------
# Executor mode: docker | direct
EXECUTOR_MODE=docker
# Public visibility settings (Phala Trust Center)
PUBLIC_LOGS=true
PUBLIC_SYSINFO=true
LISTED=false