|
1 |
| -# Environment variables for CodePush Server |
| 1 | +########################################## |
| 2 | +# Environment Variables for CodePush Server |
| 3 | +########################################## |
2 | 4 |
|
3 |
| -# Storage Configuration |
4 |
| -# Set to 'true' to use the local emulator instead of a hosted instance |
5 |
| -EMULATED=false |
| 5 | +# ============================== |
| 6 | +# Storage Configuration (REQUIRED - choose one) |
| 7 | +# ============================== |
| 8 | +EMULATED=false # Set to 'true' to use the local emulator |
6 | 9 |
|
7 |
| -# Azure Storage Configuration |
8 |
| -# The name of your hosted Azure storage instance |
9 |
| -AZURE_STORAGE_ACCOUNT= |
10 |
| -# The key to your Azure storage instance (if KeyVault credentials are not provided) |
11 |
| -AZURE_STORAGE_ACCESS_KEY= |
| 10 | +# --- Azure Storage Configuration --- |
| 11 | +AZURE_STORAGE_ACCOUNT= # Azure storage account name |
| 12 | +AZURE_STORAGE_ACCESS_KEY= # Azure storage access key (if KeyVault not used) |
12 | 13 |
|
13 |
| -# Server Configuration |
14 |
| -# The URL of your server |
15 |
| -SERVER_URL=http://localhost:3000 |
| 14 | +# ============================== |
| 15 | +# Server Configuration (REQUIRED) |
| 16 | +# ============================== |
| 17 | +SERVER_URL=http://localhost:3000 # The URL of your server |
16 | 18 |
|
17 |
| -# GitHub OAuth Configuration |
18 |
| -GITHUB_CLIENT_ID= |
19 |
| -GITHUB_CLIENT_SECRET= |
| 19 | +# ============================== |
| 20 | +# Authentication (REQUIRED - at least one provider) |
| 21 | +# ============================== |
20 | 22 |
|
21 |
| -# Microsoft OAuth Configuration |
22 |
| -MICROSOFT_CLIENT_ID= |
23 |
| -MICROSOFT_CLIENT_SECRET= |
| 23 | +# --- GitHub OAuth --- |
| 24 | +GITHUB_CLIENT_ID= # GitHub OAuth client ID |
| 25 | +GITHUB_CLIENT_SECRET= # GitHub OAuth client secret |
24 | 26 |
|
25 |
| -# HTTPS Configuration |
26 |
| -# Set to 'true' to enable HTTPS for local deployment |
27 |
| -HTTPS= |
| 27 | +# --- Microsoft OAuth --- |
| 28 | +MICROSOFT_CLIENT_ID= # Microsoft OAuth client ID |
| 29 | +MICROSOFT_CLIENT_SECRET= # Microsoft OAuth client secret |
28 | 30 |
|
29 |
| -# Debugging Configuration |
30 |
| -# Turn on CodePush-specific logging of API and Storage requests |
31 |
| -LOGGING=false |
32 |
| -# Disable the OAuth authentication route |
33 |
| -DEBUG_DISABLE_AUTH=false |
34 |
| -# Backend id of user to behave as during the debugging session |
35 |
| -DEBUG_USER_ID= |
| 31 | +# ============================== |
| 32 | +# Optional Configuration |
| 33 | +# ============================== |
36 | 34 |
|
| 35 | +# --- HTTPS Configuration --- |
| 36 | +HTTPS= # Set to 'true' to enable HTTPS for local deployment |
| 37 | + |
| 38 | +# --- Debugging Configuration --- |
| 39 | +LOGGING=false # Enable CodePush-specific logging |
| 40 | +DEBUG_DISABLE_AUTH=false # Disable OAuth authentication route |
| 41 | +DEBUG_USER_ID= # Backend user ID for debugging session |
| 42 | + |
| 43 | +# ============================== |
37 | 44 | # Redis Configuration
|
38 |
| -# The IP address where the Redis server is hosted |
39 |
| -REDIS_HOST= |
40 |
| -# The port which Redis is listening on |
41 |
| -REDIS_PORT=6379 |
42 |
| -# The key used to authenticate requests to the Redis cache |
43 |
| -REDIS_KEY= |
| 45 | +# ============================== |
| 46 | +REDIS_HOST= # Redis server IP address |
| 47 | +REDIS_PORT=6379 # Redis port (default: 6379) |
| 48 | +REDIS_KEY= # Redis authentication key |
44 | 49 |
|
| 50 | +# ============================== |
45 | 51 | # Unit Testing Configuration
|
46 |
| -# Set to 'true' to run API unit tests against Azure storage |
47 |
| -TEST_AZURE_STORAGE=false |
48 |
| -# If TEST_AZURE_STORAGE is set to true, set to the account of the storage you would like to test on |
49 |
| -AZURE_STORAGE_ACCOUNT= |
50 |
| -# If TEST_AZURE_STORAGE is set to true, set to the access key of the storage you would like to test on |
51 |
| -AZURE_STORAGE_ACCESS_KEY= |
| 52 | +# ============================== |
| 53 | +TEST_AZURE_STORAGE=false # Run API unit tests against Azure storage |
| 54 | +AZURE_STORAGE_ACCOUNT= # Storage account for testing (if TEST_AZURE_STORAGE=true) |
| 55 | +AZURE_STORAGE_ACCESS_KEY= # Storage access key for testing |
52 | 56 |
|
53 |
| -# Set to a Azure url to run acquisition tests against that server |
54 |
| -AZURE_ACQUISITION_URL= |
| 57 | +AZURE_ACQUISITION_URL= # URL for acquisition tests |
55 | 58 |
|
| 59 | +# ============================== |
56 | 60 | # Other Configuration
|
57 |
| -# Set to 'true' to disable acquisition routes |
58 |
| -DISABLE_ACQUISITION=false |
59 |
| -# Set to 'true' to disable management routes |
60 |
| -DISABLE_MANAGEMENT=false |
61 |
| -# Set to 'false' in order to disable account registration |
62 |
| -ENABLE_ACCOUNT_REGISTRATION=true |
63 |
| -# Set to the max number of megabytes allowed for file uploads |
64 |
| -UPLOAD_SIZE_LIMIT_MB=200 |
65 |
| - |
66 |
| -# To enable generating diffs for releases |
67 |
| -ENABLE_PACKAGE_DIFFING=false |
| 61 | +# ============================== |
| 62 | +DISABLE_ACQUISITION=false # Disable acquisition routes |
| 63 | +DISABLE_MANAGEMENT=false # Disable management routes |
| 64 | +ENABLE_ACCOUNT_REGISTRATION=true # Enable account registration |
| 65 | +UPLOAD_SIZE_LIMIT_MB=200 # Max file upload size (in MB) |
| 66 | +ENABLE_PACKAGE_DIFFING=false # Enable generating diffs for releases |
68 | 67 |
|
69 |
| -# To enable KeyVault credential resolution |
70 |
| -# Add any additional environment variables here |
| 68 | +# ============================== |
| 69 | +# Azure KeyVault Configuration (Optional) |
| 70 | +# ============================== |
| 71 | +AZURE_KEYVAULT_ACCOUNT= # Azure KeyVault account name |
| 72 | +CLIENT_ID= # Active Directory app client ID |
| 73 | +CERTIFICATE_THUMBPRINT= # AD app certificate thumbprint |
| 74 | +REFRESH_CREDENTIALS_INTERVAL=86400000 # Credential refresh interval (in ms, default: 1 day) |
0 commit comments