1
- # Docker Registry Configuration
2
- DOCKER_REGISTRY = ghcr.io
3
- DOCKER_IMAGE = arunavo4/gitea-mirror
4
- DOCKER_TAG = latest
1
+ # Gitea Mirror Configuration
2
+ # Copy this to .env and update with your values
3
+
4
+ # ===========================================
5
+ # CORE CONFIGURATION
6
+ # ===========================================
5
7
6
8
# Application Configuration
7
9
NODE_ENV = production
8
10
HOST = 0.0.0.0
9
11
PORT = 4321
12
+
13
+ # Database Configuration
14
+ # For self-hosted, SQLite is used by default
10
15
DATABASE_URL = sqlite://data/gitea-mirror.db
11
16
12
17
# Security
18
+ # Generate with: openssl rand -base64 32
13
19
BETTER_AUTH_SECRET = change-this-to-a-secure-random-string-in-production
14
20
BETTER_AUTH_URL = http://localhost:4321
15
21
# ENCRYPTION_SECRET=optional-encryption-key-for-token-encryption # Generate with: openssl rand -base64 48
16
22
17
- # Optional GitHub/Gitea Mirror Configuration (for docker-compose, can also be set via web UI)
18
- # Uncomment and set as needed. These are passed as environment variables to the container.
23
+ # ===========================================
24
+ # DOCKER CONFIGURATION (Optional)
25
+ # ===========================================
26
+
27
+ # Docker Registry Configuration
28
+ DOCKER_REGISTRY = ghcr.io
29
+ DOCKER_IMAGE = arunavo4/gitea-mirror
30
+ DOCKER_TAG = latest
31
+
32
+ # ===========================================
33
+ # MIRROR CONFIGURATION (Optional)
34
+ # Can also be configured via web UI
35
+ # ===========================================
36
+
37
+ # GitHub Configuration
19
38
# GITHUB_USERNAME=your-github-username
20
39
# GITHUB_TOKEN=your-github-personal-access-token
21
40
# SKIP_FORKS=false
@@ -27,22 +46,23 @@ BETTER_AUTH_URL=http://localhost:4321
27
46
# PRESERVE_ORG_STRUCTURE=false
28
47
# ONLY_MIRROR_ORGS=false
29
48
# SKIP_STARRED_ISSUES=false
49
+
50
+ # Gitea Configuration
30
51
# GITEA_URL=http://gitea:3000
31
52
# GITEA_TOKEN=your-local-gitea-token
32
53
# GITEA_USERNAME=your-local-gitea-username
33
54
# GITEA_ORGANIZATION=github-mirrors
34
55
# GITEA_ORG_VISIBILITY=public
35
56
# DELAY=3600
36
57
37
- # Optional Database Cleanup Configuration (configured via web UI)
38
- # These environment variables are optional and only used as defaults
39
- # Users can configure cleanup settings through the web interface
58
+ # ===========================================
59
+ # OPTIONAL FEATURES
60
+ # ===========================================
61
+
62
+ # Database Cleanup Configuration
40
63
# CLEANUP_ENABLED=false
41
64
# CLEANUP_RETENTION_DAYS=7
42
65
43
- # Optional TLS/SSL Configuration
44
- # Option 1: Mount custom CA certificates in ./certs directory as .crt files
45
- # The container will automatically combine them into a CA bundle
46
- # Option 2: Mount your system CA bundle at /etc/ssl/certs/ca-certificates.crt
47
- # See docker-compose.yml for volume mount examples
48
- # GITEA_SKIP_TLS_VERIFY=false # WARNING: Only use for testing, disables TLS verification
66
+ # TLS/SSL Configuration
67
+ # GITEA_SKIP_TLS_VERIFY=false # WARNING: Only use for testing
68
+
0 commit comments