-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.sample
More file actions
48 lines (41 loc) · 2.08 KB
/
Copy path.env.sample
File metadata and controls
48 lines (41 loc) · 2.08 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
# ============================================================
# mosgarage/mosgarage-codeserver — Environment Variables
# Copy to .env and fill in your values before running
# ============================================================
# ── Service ports ─────────────────────────────────────────────
CODE_SERVER_PORT=8080
NODE_SERVER_PORT=3000
API_PORT=4000
# ── code-server password (CHANGE THIS) ────────────────────────
CODE_SERVER_PASSWORD=Password123.
# ── API key (leave blank = open, set to protect API routes) ───
API_KEY=
# ── Node environment ──────────────────────────────────────────
NODE_ENV=production
# ── GitHub identity ───────────────────────────────────────────
GITHUB_USER=mosgaragedev
GITHUB_ORG=mosgarage
GITHUB_REPO=mosgaragedev
GIT_BRANCH=main
GIT_NAME=mosgaragedev
# ── GitHub auth — choose ONE method ───────────────────────────
#
# Method A: Personal Access Token (HTTPS) — easiest
# 1. Go to github.com → Settings → Developer settings → Personal access tokens
# 2. Generate token with: repo (full), workflow
# 3. Paste it below
#
GITHUB_TOKEN=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
#
# Method B: SSH deploy key — more secure
# 1. Run: ./scripts/gen-deploy-key.sh
# 2. Add public key to: github.com/mosgarage/mosgaragedev/settings/keys
# 3. Comment out GITHUB_TOKEN above
# 4. Uncomment the SSH volume in docker-compose.yml
# (ssh-keys/id_ed25519 is auto-mounted when present)
# ── Sync schedule (seconds) ───────────────────────────────────
# 900 = every 15 minutes (default)
# 300 = every 5 minutes
# 3600 = every hour
GIT_SYNC_INTERVAL=900