This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
# myai API - Environment Variables Template
|
||||
# Copy this file to .env and fill in your values
|
||||
# DO NOT commit .env to source control!
|
||||
|
||||
# ASP.NET Core Environment (Development, Staging, Production)
|
||||
ASPNETCORE_ENVIRONMENT=Development
|
||||
ASPNETCORE_URLS=http://+:8080
|
||||
|
||||
# Application Environment Name (shown in email subjects to identify which environment sent the email)
|
||||
APP_ENVIRONMENT_NAME=myai.ro-Development
|
||||
|
||||
# Azure Key Vault (Optional - for production)
|
||||
KeyVault__Enabled=false
|
||||
KeyVault__VaultUri=https://your-keyvault-name.vault.azure.net/
|
||||
|
||||
# Note: If Key Vault is enabled, you can store secrets there instead of below
|
||||
# The following settings can be overridden by Key Vault secrets
|
||||
|
||||
# SMTP Configuration
|
||||
Smtp__Host=mail.example.com
|
||||
Smtp__Port=587
|
||||
Smtp__Username=no-reply@example.com
|
||||
Smtp__Password=your-secure-password-here
|
||||
Smtp__UseStartTls=true
|
||||
|
||||
# Google reCAPTCHA
|
||||
Captcha__Provider=Recaptcha
|
||||
Captcha__SecretKey=your-recaptcha-secret-key
|
||||
Captcha__PublicKey=your-recaptcha-public-key
|
||||
Captcha__MinimumScore=0.5
|
||||
Captcha__ExpectedAction=
|
||||
Captcha__ExpectedHostname=
|
||||
|
||||
# Google Services (optional - public keys safe to expose)
|
||||
Google__TagManagerId=GTM-XXXXXXX
|
||||
Google__MapKey=
|
||||
|
||||
# File Storage (relative to solution folder - defaults to "Files" if not set)
|
||||
FileStorage__Path=Files
|
||||
FileStorage__DefaultFileName=
|
||||
FileStorage__ToEmail=admin@yourdomain.com
|
||||
FileStorage__FromEmail=no-reply@yourdomain.com
|
||||
FileStorage__SubjectPrefix=[File Download]
|
||||
|
||||
# Contact Settings
|
||||
Contact__ToEmail=contact@yourdomain.com
|
||||
Contact__FromEmail=no-reply@yourdomain.com
|
||||
Contact__SubjectPrefix=[Contact]
|
||||
|
||||
# Subscribe Settings
|
||||
Subscribe__ToEmail=contact@yourdomain.com
|
||||
Subscribe__SubjectPrefix=[Subscribe]
|
||||
|
||||
# CORS - Allowed Origins (comma separated or multiple variables)
|
||||
Cors__AllowedOrigins__0=https://yourdomain.com
|
||||
Cors__AllowedOrigins__1=https://www.yourdomain.com
|
||||
|
||||
# Logging Configuration
|
||||
Logging__LogLevel__Default=Information
|
||||
Logging__LogLevel__Microsoft=Warning
|
||||
Logging__LogLevel__Microsoft.AspNetCore=Warning
|
||||
Logging__LogLevel__Api=Information
|
||||
|
||||
# Serilog Email Alerts (for Error notifications)
|
||||
Serilog__WriteTo__2__Args__fromEmail=no-reply@yourdomain.com
|
||||
Serilog__WriteTo__2__Args__toEmail=webmaster@yourdomain.com
|
||||
Serilog__WriteTo__2__Args__mailServer=mail.example.com
|
||||
Serilog__WriteTo__2__Args__networkCredential__userName=no-reply@yourdomain.com
|
||||
Serilog__WriteTo__2__Args__networkCredential__password=your-password
|
||||
Serilog__WriteTo__2__Args__port=587
|
||||
Serilog__WriteTo__2__Args__enableSsl=true
|
||||
|
||||
Reference in New Issue
Block a user