Configuration

Environment variables and the admin-editable App Settings that control how Who's OOO behaves

Who's OOO is configured in two places: environment variables for secrets and infrastructure, and App Settings, which admins change from the UI without a deploy.

Environment variables

There are two files, and different programs read them:

  • app/.env.local is read by Symfony. All variables on this page go here (or into your host's environment settings, e.g. the fortrabbit Dashboard).
  • .env at the repository root is read by Docker Compose only. It holds the database container's credentials and the COMPOSE_FILE pin for the production stack. See Production Deployment.

The development Docker stack provides working defaults, so locally you only need to add variables for optional integrations.

Core (production)

Variable Description
APP_ENV prod in production.
APP_SECRET Random secret. Generate with openssl rand -hex 16.
APP_BASE_URL Public URL of your instance, without a trailing slash. Used for links in emails sent by the worker and scheduled jobs.
TRUSTED_PROXIES IP or CIDR of your TLS-terminating reverse proxy. See Put a TLS proxy in front.
TRUSTED_HOSTS Regular expression matching your public host name, e.g. '^leave\.example\.com$'. Empty accepts any host.
DATABASE_URL MySQL connection string.
MAILER_DSN SMTP connection, e.g. smtp://user:pass@smtp.example.com:587.
EMAIL_FROM_ADDRESS, EMAIL_FROM_NAME Sender address and name for all outgoing email.
TOTP_ENCRYPTION_KEY Encrypts two-factor authentication secrets. Generate with openssl rand -base64 32.
MESSENGER_TRANSPORT_DSN Queue for the background worker, e.g. doctrine://default?auto_setup=0.
APP_SETTINGS_FILE Optional. Path of the App Settings YAML file (see below).

Slack integration

These variables enable the Slack integration for leave request approvals, weekly digests, and personal notifications.

Variable Description
SLACK_DSN Slack bot token in DSN format: slack://TOKEN@default?channel=CHANNEL. Replace TOKEN with your xoxb- bot token.
SLACK_SIGNING_SECRET Found under Basic Information → App Credentials → Signing Secret in your Slack App settings. Used to verify incoming requests from Slack. While it is empty, every request from Slack is rejected.
SLACK_AR_APPROVE_CHANNEL_ID Channel ID for leave request approval messages (with Approve / Reject buttons). Right-click the channel in Slack → View channel details → copy the Channel ID.
SLACK_AR_HR_DIGEST_CHANNEL_ID Channel ID for the weekly digest (who's out, birthdays, anniversaries). Same steps as above.

Tip: Channel IDs look like C04ABCD1234. Don't use the channel name — it won't work.

Slack status sync

Only needed for Slack status sync.

Variable Description
SLACK_CLIENT_ID Client ID of your Slack app (Basic Information → App Credentials).
SLACK_CLIENT_SECRET Client Secret of your Slack app.
SLACK_TOKEN_ENCRYPTION_KEY Encrypts the admin's OAuth token at rest. Generate with php -r "echo base64_encode(sodium_crypto_secretbox_keygen());". Changing it means authorizing status sync again.

iCal feeds

This variable enables the iCal feed feature, allowing users to subscribe to their approved leave requests from any calendar app.

Variable Description
ICAL_SECRET A random string of at least 32 characters, used to generate secure, per-user feed URLs. Generate one with openssl rand -hex 16.

Warning: Changing ICAL_SECRET invalidates all existing feed URLs. Every user will need to re-copy their URL and update their calendar subscriptions.

Application settings

Admins change how the app behaves from Settings → App Settings in the sidebar. Edit the values and click Save Changes. No code change or deploy is needed.

Setting Default What it does
Auto Approve Off Approve leave requests automatically
Auto Approve Delay (minutes) 115 How long to wait before auto-approving
Default Annual Allowance (days) 25 Annual leave days pre-filled for new users
Minimum Notice (days) 1 Minimum notice for a leave request (0 means no minimum)
Max Consecutive Days 0 Maximum consecutive days per request (0 means unlimited)
Skip weekend public holidays Off Leave public holidays that fall on a weekend out of notifications
Enable Slack status auto-sync Off Turn Slack status sync on or off
Send day, Send time, Timezone Monday, 08:15, UTC When the Slack weekly digest is posted
Organization Name Your Organization Your organization's display name

Settings are stored in a YAML file. By default it lives at app/src/Module/Settings/Config/app_setting.yaml; set APP_SETTINGS_FILE to store it somewhere else. The Docker production stack keeps it on a shared volume so the web app and the worker see the same values (see Application settings storage).