# Configuration Templates

This directory contains configuration templates for different deployment scenarios of the CAESES Data Center.

## Configuration Files

### `production.env`
Standard production configuration for dedicated server deployment.
- Binds to localhost by default for security
- Single worker process
- Standard logging enabled

### `docker.env`
Configuration optimized for Docker container deployment.
- Binds to all interfaces (0.0.0.0) for container networking
- Multiple workers for better performance
- Container-friendly logging and paths

### `sidecar.env`
Configuration for running as a sidecar to another application.
- Localhost binding only
- Minimal logging to reduce interference
- Alternative port (8001) to avoid conflicts

## Usage

1. Copy the appropriate template to your deployment directory
2. Rename it to `.env`
3. Customize the values for your specific environment
4. Ensure proper file permissions (readable by the application user only)

## Environment Variables

All configuration options can be set via environment variables. The `.env` file provides defaults that can be overridden by system environment variables.

### Core Settings
- `DATACENTER_HOST`: Server bind address
- `DATACENTER_PORT`: Server port
- `DATACENTER_LOG_LEVEL`: Logging verbosity (debug, info, warning, error)
- `DATACENTER_WORKERS`: Number of worker processes
- `DATACENTER_ACCESS_LOG`: Enable/disable HTTP access logging

### Integration Settings
- `CAESES_API_URL`: CAESES server URL
- `CAESES_API_KEY`: API authentication key

### Security
In production deployments, use proper secret management systems instead of storing sensitive values in configuration files.