-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathdocker.env.example
More file actions
96 lines (83 loc) · 3.82 KB
/
Copy pathdocker.env.example
File metadata and controls
96 lines (83 loc) · 3.82 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
# Docker/production configuration, copy this file to .env at the repo root.
# This .env is read by Docker Compose to inject variables into containers.
# For local development, use apps/api/.env and apps/web/.env instead.
# ============================================
# Docker Image Version (Single Source of Truth)
# ============================================
# Specify which version of Openinary to use
# This version is used for:
# 1. Docker image tag (e.g., openinary:v0.1.0)
# 2. Version displayed in the UI sidebar
# See: https://github.com/openinary/openinary/releases
# Options:
# - latest (always pulls newest)
# - v0.1.0 (specific version)
# - 0.1 (minor version, gets latest patches automatically)
# - 0 (major version, gets latest minor/patches automatically)
# Note: v0.x.x versions may include breaking changes
IMAGE_TAG=latest
# Custom image names (optional)
# OPENINARY_FULL_IMAGE=openinary/openinary
# OPENINARY_API_IMAGE=openinary/openinary-api
# ============================================
# Authentication (Required)
# ============================================
# Generate a secure secret: openssl rand -base64 32
BETTER_AUTH_SECRET=your-secret-here-min-32-chars
# Your Openinary instance URL (used for authentication and CORS)
BETTER_AUTH_URL=http://localhost:3000
# Optional internal URL for server-side Better Auth calls.
# Leave unset unless your reverse-proxy setup needs a separate internal route.
# BETTER_AUTH_INTERNAL_URL=http://127.0.0.1:3001
# Secret used to sign/verify signed URLs and presigned, authenticated uploads.
# Generate a 64-character secret: openssl rand -hex 32
API_SECRET=your-secret-here-64-chars
# Initial account setup credentials and api generation (optional)
# An API key is always generated when first launch happenes in API mode.
# Initial gernerated API keys are only valid for 1 year.
#
# make sure to REMOVE these again after first launch
#
# OPENINARY_ADMIN_NAME=adminname
# OPENINARY_ADMIN_EMAIL=your@email.com
# OPENINARY_ADMIN_PASSWORD=your-secure-password
# OPENINARY_GENERATE_API_KEY=true
# ============================================
# Accessibility (Optional)
# ============================================
# If you want to use openinary from within another
# website, then you need to configure the allowed CORS origin.
# CORS_ORIGIN=https://yourwebsite.com
# ============================================
# API Configuration (Full Stack)
# ============================================
# Public base URL the browser uses to reach the API. Defaults to your
# instance's single project URL, same as BETTER_AUTH_URL above, the bundled
# full-stack image keeps this as /api since nginx already proxies the API
# there. Only change it if the API is reachable at a different origin (e.g.
# an API-only deployment, or an external app embedding the File Uploader).
NEXT_PUBLIC_API_BASE_URL=/api
# ============================================
# Upload Configuration (Optional)
# ============================================
# Maximum file size for uploads in megabytes (default: 50)
# Increase for large video uploads in self-hosted setups
# MAX_FILE_SIZE_MB=50
# ============================================
# Docker Resources (Recommended Settings)
# ============================================
# For 4GB RAM server:
DOCKER_CPU_LIMIT=2.0
DOCKER_MEMORY_LIMIT=4G
# For 16GB RAM server (uncomment):
# DOCKER_CPU_LIMIT=4.0
# DOCKER_MEMORY_LIMIT=12G
# VIDEO_MAX_CONCURRENT=4
# ============================================
# Anonymous Usage Telemetry (Optional)
# ============================================
# Openinary sends a small, anonymous, aggregated usage ping on startup and
# then once a day (instance ID, version, deployment mode, bucketed counts).
# No file names, media content, or IP addresses are ever collected.
# See docs/configuration/telemetry.mdx for the exact payload. Disable with:
# OPENINARY_TELEMETRY=false