Skip to content

Configuration

Web.Casa is configured through environment variables stored in /etc/webcasa/webcasa.env. Settings managed through the web UI (hosts, users, plugins) are stored in the SQLite database.

The primary configuration file is:

/etc/webcasa/webcasa.env

Restart required: After changing environment variables, restart the Web.Casa service with systemctl restart webcasa for changes to take effect.

VariableDefaultDescription
WEBCASA_PORT39921Panel listening port
WEBCASA_DATA_DIR./dataData directory for database, certs, and backups
WEBCASA_DB_PATHdata/webcasa.dbSQLite database file path
WEBCASA_JWT_SECRETAuto-generatedSecret key for signing JWT authentication tokens. Auto-generated and persisted to data/.jwt_secret if not set
WEBCASA_CADDY_BINcaddyPath to the Caddy binary
WEBCASA_CADDYFILE_PATHdata/CaddyfilePath for the generated Caddyfile
WEBCASA_LOG_DIRdata/logsDirectory for log files

Note: If WEBCASA_JWT_SECRET is not set, Web.Casa automatically generates a random secret and persists it to data/.jwt_secret. You can override this by setting the environment variable explicitly with a strong, random string (32+ characters recommended).

Web.Casa reads configuration in this order (later sources override earlier ones):

  1. Built-in defaults
  2. Environment file (/etc/webcasa/webcasa.env)
  3. Environment variables (set in the shell or systemd unit override)

You only need to specify values you want to change from the defaults.

Additional settings are managed through the Settings page in the web UI:

  • Auto-reload Caddy — automatically apply Caddy configuration changes without manual reload
  • Server IP configuration — set the server’s public IP for DNS and certificate operations
  • Import/Export — backup and restore panel configuration as JSON
  • Caddyfile editor — built-in code editor powered by CodeMirror 6 with:
    • Syntax highlighting
    • Format — auto-format the Caddyfile
    • Validate — check for configuration errors
    • Save — persist changes
    • Reload — apply changes to the running Caddy instance
PathPurpose
/etc/webcasa/webcasa.envEnvironment configuration file
/var/lib/webcasa/webcasa.dbSQLite database (WAL mode)
/var/lib/webcasa/Data directory (certs, backups, uploads)

The following settings are managed through the web UI and stored in SQLite — not in configuration files:

  • Reverse proxy host definitions
  • DNS provider credentials
  • User accounts and roles
  • Certificate records
  • Backup schedules
  • Plugin-specific settings
  • Audit log entries