Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
80 lines (66 loc) · 3.01 KB
/
Copy path.env.example
File metadata and controls
80 lines (66 loc) · 3.01 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
##########################################
# Environment Variables for CodePush Server
##########################################
# ==============================
# Storage Configuration (REQUIRED - choose one)
# ==============================
EMULATED=false # Set to 'true' to use the local emulator
# --- Azure Storage Configuration ---
AZURE_STORAGE_ACCOUNT= # Azure storage account name
AZURE_STORAGE_ACCESS_KEY= # Azure storage access key (if KeyVault not used)
# ==============================
# Storage Selection (REQUIRED - choose one)
# ==============================
STORAGE_MODE=azure # Default: azure. Use "sqlite" to enable local SQLite storage (for single-node setups).
# If STORAGE_MODE=sqlite, you can also set:
# SQLITE_DB_PATH=./data/codepush.sqlite
# SQLITE_BLOB_DIR=./sqlite-blobs
# ==============================
# Server Configuration (REQUIRED)
# ==============================
SERVER_URL=http://localhost:3000 # The URL of your server
# ==============================
# Authentication (REQUIRED - at least one provider)
# ==============================
# --- GitHub OAuth ---
GITHUB_CLIENT_ID= # GitHub OAuth client ID
GITHUB_CLIENT_SECRET= # GitHub OAuth client secret
# --- Microsoft OAuth ---
MICROSOFT_CLIENT_ID= # Microsoft OAuth client ID
MICROSOFT_CLIENT_SECRET= # Microsoft OAuth client secret
# ==============================
# Optional Configuration
# ==============================
# --- HTTPS Configuration ---
HTTPS= # Set to 'true' to enable HTTPS for local deployment
# --- Debugging Configuration ---
LOGGING=false # Enable CodePush-specific logging
DEBUG_DISABLE_AUTH=false # Disable OAuth authentication route
DEBUG_USER_ID= # Backend user ID for debugging session
# ==============================
# Redis Configuration
# ==============================
REDIS_HOST= # Redis server IP address
REDIS_PORT=6379 # Redis port (default: 6379)
REDIS_KEY= # Redis authentication key
REDIS_TLS= # Set to 'true' for TLS. Defaults to true when REDIS_PORT=6380
# ==============================
# Unit Testing Configuration
# ==============================
TEST_AZURE_STORAGE=false # Run API unit tests against Azure storage
AZURE_ACQUISITION_URL= # URL for acquisition tests
# ==============================
# Other Configuration
# ==============================
DISABLE_ACQUISITION=false # Disable acquisition routes
DISABLE_MANAGEMENT=false # Disable management routes
ENABLE_ACCOUNT_REGISTRATION=true # Enable account registration
UPLOAD_SIZE_LIMIT_MB=200 # Max file upload size (in MB)
ENABLE_PACKAGE_DIFFING=false # Enable generating diffs for releases
# ==============================
# Azure KeyVault Configuration (Optional)
# ==============================
AZURE_KEYVAULT_ACCOUNT= # Azure KeyVault account name
CLIENT_ID= # Active Directory app client ID
CERTIFICATE_THUMBPRINT= # AD app certificate thumbprint
REFRESH_CREDENTIALS_INTERVAL=86400000 # Credential refresh interval (in ms, default: 1 day)