Configuration Files Overview

MiroTalk P2P uses app/src/config.js for application configuration and .env for environment-specific settings. The config template reads environment variables and supplies defaults; .env includes both sensitive values and non-sensitive options such as branding and UI behavior.
Configuration Required
Before proceeding, create these local configuration files from their templates:
- 📄
app/src/config.template.js→app/src/config.js - 🔧
.env.template→.env
Keep the local files private and compare them with the latest templates when updating.
-
- Application configuration and defaults; reads environment variables from
.env. - Keep it based on the latest template so it recognizes newly added settings.
- Application configuration and defaults; reads environment variables from
-
- Stores secrets and environment-specific settings, including P2P branding and UI options.
- Keep it private and out of version control.
Best Practices:
- Use
.envfor environment values and UI customization; see the rebranding guide for branding options. - Keep
config.jsbased on the current template and use it for application configuration that is not exposed as an environment variable. - Consult the comments in both templates for available settings and defaults.
- Restrict access to
.envand ensure it is not committed to version control.