Configuration¶
MeetAlias reads settings from two places:
.envnext todocker-compose.yml: secrets and server settings. Keep it readable by root only (chmod 600).config/brands.json: optional; sites to import at the first start. Not secret. Afterwards sites are managed in the app; see Sites and branding.
Changes take effect after docker compose up -d (which recreates containers whose settings changed).
Environment variables¶
Required¶
| Variable | Example | What it does |
|---|---|---|
SITES |
meet.example.com, meet.other.example |
Domains Caddy serves and gets certificates for. At least the first site's domain; sites added on the Brands page get their certificate automatically. Separated by comma and space. |
SECRET_KEY |
64 random characters | At least 32 characters. Signs session cookies and booking links, and encrypts the stored client secret and each person's Google or Microsoft tokens. See rotating secrets before changing it. |
POSTGRES_PASSWORD |
48 hex characters | Password of the database user. Set once; the database keeps it. |
Optional¶
| Variable | Default | What it does |
|---|---|---|
ALLOWED_DOMAIN |
(set by the wizard) | Google Workspace only: only Google accounts on this domain can sign in, checked at sign-in and on every request. The setup wizard sets it from the admin who signs in first. On Microsoft 365 it isn't used: every member account of the tenant can sign in, whatever its domain, and guests can't. |
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET |
(set by the wizard) | Google Workspace only: the OAuth client from Google setup. Microsoft 365 has no variables; its app registration is entered only in the wizard. |
MAX_USERS |
(no limit) | How many people the install is for. Nobody is blocked over the limit; admins see a warning and can remove people in Profile → Team access. |
MAX_BRANDS |
(no limit) | How many brands the install may have; archived ones count, since their links still work. At the limit, admins can't add another. |
MAX_PAGES |
(no limit) | How many booking pages each person may have. Meeting types are never limited. |
HIDE_POWERED_BY |
(shown) | 1 hides the small "Scheduling by MeetAlias" line on public pages (booking, confirmation, sign-in). |
ADMIN_EMAILS |
(none) | Comma-separated emails of admins. Admins see everyone's meetings and can sign people out on every device. |
BRANDS_FILE |
config/brands.json |
Path of the sites file to import at the first start, if you keep it elsewhere. |
HTTP_PORT, HTTPS_PORT |
80, 443 |
Ports Caddy listens on inside its container. |
SITE_TLS |
(automatic) | Extra Caddy tls directive, e.g. tls internal for a test install without public DNS. |
CADDY_GLOBAL |
(none) | Extra lines for Caddy's global options block, e.g. email admin@example.com for Let's Encrypt notices. |
DATABASE_URL |
set by Compose | Only when running the app outside Docker, e.g. postgres://meetings:<password>@localhost:5432/meetings. |
ALLOWED_DOMAIN, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET and ADMIN_EMAILS are for installs from before the setup wizard. If set, they're copied into the database on the first start and ignored after that, except that ADMIN_EMAILS keeps granting admin as an emergency list. Change the connection later under Profile → Team access → Google connection (or Microsoft connection).
Test only¶
| Variable | What it does |
|---|---|
GOOGLE_FAKE=1 |
Replaces Google and Microsoft with an in-memory fake and enables /api/auth/test-login?email=…. Refused with any https:// site; Caddy also answers that path with 404. Never set it on a real install. |
Startup checks¶
MeetAlias exits at startup, with a message in docker compose logs app, when:
SECRET_KEYis missing or shorter than 32 characters;brands.jsonexists but is invalid, or names a logo file that doesn't exist;GOOGLE_FAKE=1is set together with anhttps://site;- in production: a site uses
http://.
Until the setup wizard is done, it starts but only shows the setup page.
It also warns (and still starts) when a site's colour is too light to read on white.
Limits¶
Each has a sensible default; set the variable in .env to change it (then restart). A value that isn't a whole number in the allowed range stops the app at start, with a message saying which one, so a typo never quietly loosens a limit.
| Variable | Default | Allowed | What it limits |
|---|---|---|---|
SESSION_DAYS |
7 | 1–365 | Days a sign-in lasts without use; renewed while in use |
BOOKING_HOLD_MINUTES |
30 | 5–1440 | How long a requested time is held for the booker's email confirmation |
CONFIRMATION_LINKS_PER_EMAIL |
1 | 1–20 | Waiting confirmation links per booker email address |
BOOKINGS_PER_DAY |
8 | 1–1000 | Online bookings per host in any 24 hours; above it the booking page shows no free times |
UPCOMING_PER_EMAIL |
2 | 1–1000 | Upcoming online bookings with one host per booker email |
UPCOMING_PER_DOMAIN |
4 | 1–1000 | The same per company email domain (not Gmail, Outlook.com and the like) |
BOOKING_ATTEMPTS_PER_HOUR |
10 | 1–10000 | Booking attempts per visitor IP |
BOOKING_CHANGES_PER_HOUR |
10 | 1–10000 | Reschedules, cancels and confirmations per visitor IP |
HOST_ACTIONS_PER_HOUR |
30 | 1–10000 | Valid booking requests, reschedules and cancels per host; each sends mail from the host's own mailbox, so this protects its sending limit |
MAX_RESCHEDULES |
3 | 0–100 | Times a client can reschedule one booking themselves |
LINK_OPENS_PER_MINUTE |
30 | 1–100000 | Meeting link (/m/…) opens per visitor IP |
SLOT_LOOKUPS_PER_MINUTE |
120 | 1–100000 | Free-time lookups per visitor IP |
SYNC_MINUTES |
10 | 1–1440 | How often calendars are synced |
MAX_IMAGE_KB |
256 | 16–900 | Profile photo and brand logo size (photos are resized in the browser first) |
The rate limits count per app process, in memory: they start again after a restart.