-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add .env.example for easier environment setup and refine .giti…
…gnore (#15) I’ve made a couple of updates here to developer experience: - Added `.env.example` for easier environment setup This provides a template for environment variables, helping developers get their local setup configured quickly. - Updated `.gitignore` to exclude Azurite local storage files We’ve added patterns to ignore Azurite's local storage files `(__azurite_db_*, __blobstorage__, __queuestorage__)`, keeping the working directory cleaner during local development.
- Loading branch information
Showing
4 changed files
with
98 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
########################################## | ||
# 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) | ||
|
||
# ============================== | ||
# 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 | ||
|
||
# ============================== | ||
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters