-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
73 lines (63 loc) · 3.55 KB
/
.env.example
File metadata and controls
73 lines (63 loc) · 3.55 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
# =============================================================================
# REFITY - Docker Private Registry with SFTP Storage
# Copy this file to .env and fill in your values.
# =============================================================================
# -----------------------------------------------------------------------------
# STORAGE (SFTP) – Backend stores image blobs and manifests on your SFTP server
# -----------------------------------------------------------------------------
# Required. Your SFTP host (e.g. Hetzner Storage Box: u123456.your-storagebox.de)
FTP_HOST=sftp.example.com
# Required. SFTP port (usually 22)
FTP_PORT=22
# Required. SFTP username
FTP_USERNAME=sftpuser
# Required. SFTP password
FTP_PASSWORD=sftppass
# Optional. Path to SSH known_hosts file. Enables host key verification (recommended in production).
# FTP_KNOWN_HOSTS=/etc/refity/known_hosts
# Optional. When to upload to SFTP:
# false (default) = async: push returns immediately, upload runs in background
# true = sync: push waits until file is on SFTP (slower, but file is there when push completes)
# SFTP_SYNC_UPLOAD=false
# -----------------------------------------------------------------------------
# SERVER – Backend HTTP server
# -----------------------------------------------------------------------------
# Optional. Port for the registry API (default: 5000)
# PORT=5000
# -----------------------------------------------------------------------------
# SECURITY & AUTH – Required for production
# -----------------------------------------------------------------------------
# Required in production. Secret for signing JWT tokens. Use a long random string (e.g. 32+ chars).
JWT_SECRET=your-long-random-secret-at-least-32-chars
# Optional. Comma-separated list of allowed CORS origins (e.g. your frontend URL).
# Default: http://localhost:8080, http://127.0.0.1:8080
# CORS_ORIGINS=https://registry.example.com,https://refity.example.com
# -----------------------------------------------------------------------------
# DASHBOARD – FTP Usage card (Hetzner Storage Box)
# -----------------------------------------------------------------------------
# Optional. Show "FTP Usage" card on dashboard (used/total from Hetzner API).
# Default: false (card hidden; dashboard shows only Total Images, Total Groups, Total Size).
# Set to true only if you use Hetzner Storage Box; then set HCLOUD_TOKEN and HETZNER_BOX_ID.
# FTP_USAGE_ENABLED=true
# Required when FTP_USAGE_ENABLED=true. Hetzner Cloud API token (same as HCLOUD token).
# HCLOUD_TOKEN=your_hetzner_api_token_here
# Required when FTP_USAGE_ENABLED=true. Your Hetzner Storage Box numeric ID.
# HETZNER_BOX_ID=0
# -----------------------------------------------------------------------------
# FRONTEND / WEB UI
# -----------------------------------------------------------------------------
# This .env file is loaded by the BACKEND container (see docker-compose.yml `backend.env_file`).
# The production frontend container does NOT read this file.
#
# Production (Docker):
# - The frontend uses same-origin `/api/*` and `/v2/*`.
# - Nginx inside the frontend container proxies those paths to the backend.
# - If you rename your backend service, set this env var on the FRONTEND service:
# BACKEND_UPSTREAM=backend:5000
#
# Development (local, `npm run dev` inside `frontend/`):
# - The dev server uses VITE_API_URL from `frontend/.env.example`.
#
# Optional (UI only): Registry URL shown for “docker pull” commands.
# If your frontend build uses it, set it at build time or in your CI:
# VITE_REGISTRY_URL=localhost:5000