chore: Remove .env.production file and update documentation for environment file security
This commit is contained in:
@@ -45,10 +45,17 @@
|
||||
|
||||
#### **Environment Variables**
|
||||
|
||||
- Never commit `.env` files to version control
|
||||
- Use separate environment files for different deployments
|
||||
- Rotate credentials regularly
|
||||
- Use strong, unique passwords for each environment
|
||||
- Never commit `.env` files to version control, especially `.env.production` which contains production credentials
|
||||
- Use `.env.example` as a template for creating new environment files
|
||||
- Create separate environment files for different deployment environments:
|
||||
- `.env` - Local development
|
||||
- `.env.staging` - Staging environment
|
||||
- `.env.production` - Production environment
|
||||
- Always add all `.env` files to `.gitignore` to prevent accidental commits
|
||||
- Use environment variables for configuration to maintain security and flexibility
|
||||
- Rotate credentials regularly and use strong, unique passwords for each environment
|
||||
- Consider using a secrets management system for production environments
|
||||
- Never hardcode sensitive information in source code
|
||||
|
||||
#### **Docker Security**
|
||||
|
||||
|
||||
@@ -16,6 +16,13 @@ Your project now has comprehensive code quality tools configured:
|
||||
- **detect-secrets** - Security scanning to prevent secret commits
|
||||
- **EditorConfig** - Consistent coding styles across editors
|
||||
|
||||
### 🛡️ Environment File Security
|
||||
|
||||
- **Never commit .env files** to version control, especially .env.production
|
||||
- Use .env.example as a template for new environment files
|
||||
- Add all .env files to .gitignore to prevent accidental commits
|
||||
- Use environment variables for configuration to maintain security and flexibility
|
||||
|
||||
### 📁 Configuration Files Created
|
||||
|
||||
- `.pre-commit-config.yaml` - Comprehensive pre-commit hooks configuration
|
||||
|
||||
Reference in New Issue
Block a user