Configuration
Overview
The application uses YAML configuration files for both development and production environments. The main configuration file is located at config/app.yaml
.
Server Configuration
Basic server configuration includes environment, address, port, and various security settings.
You can find the full config file reference at Config File Reference
When using CLI, you can use the --config
flag to specify a configuration file.
For example, sccce --config config/app.dev.yaml [command]
will use the config/app.dev.yaml
configuration file.
Environment Variables
Environment variables with SCCCE prefix can be used to override configuration file settings.
For example, SCCCE_SERVER_PORT
can be used to override server.port
in the configuration file.
You can also reference ENV variables in the configuration file using ${ENV_VAR_NAME}
syntax.
Example Configurations
You can find example configurations in the GitHub Repository (config.example
) or in the downloaded release .tar.gz
file (under the config
folder instead of config.example
).
config.example/app.dev.yaml
- Development Configurationconfig.example/app.prod.yaml
- Production Configurationconfig.example/app.docker.prod.yaml
- Production Configuration for Docker
Security Considerations
- Change all default passwords and secrets in production
- Use strong passwords and secret keys
- Enable HTTPS in production
- Configure appropriate firewall rules
- Regularly rotate credentials
- Use environment-specific configuration files
- Never commit sensitive credentials to version control
Troubleshooting
Common configuration issues:
-
Database Connection Issues:
- Verify host and port settings
- Check credentials
- Ensure network connectivity
- Verify Docker network settings if using containers
-
Email Configuration:
- Test SMTP settings
- Verify port numbers
- Check firewall rules
- Validate email credentials
-
JWT Issues:
- Ensure secret key is properly set
- Check token expiration settings
- Verify realm configuration
For more detailed configuration options and examples, refer to the Configuration Reference.