- An option, for a Python or TypeScript server you start in code, or the Cloudflare app.
- Its environment variable, such as
MIRAGE_MAX_SESSIONS. - Its key in the
[daemon]section of~/.mirage/config.toml.
idle_grace_seconds only as an option
(idleGraceSeconds in TypeScript); its default is 30. port, workers and
worker_type are only for mirage daemon: in code, you serve the app
yourself.
The Cloudflare app has no config.toml. It reads only the sign-in settings
and the six ceilings, max_workspaces to max_env, from options or the
Worker’s variables. Its max_sessions defaults to 4.
Set a value
mirage daemon config edits ~/.mirage/config.toml:
~/.mirage/config.toml
mirage daemon config get|unset|list read
and remove keys.
Settings
Each key’s environment variable isMIRAGE_ and the key in capitals:
max_sessions is MIRAGE_MAX_SESSIONS.
Two keys are for the CLI, not the server. They tell
mirage how to reach
the server on this machine, its local context:
url, orMIRAGE_DAEMON_URL:http://127.0.0.1:PORT.mirage login URLadds another server.auth_token, orMIRAGE_TOKEN: the token it sends. See Log in.
MIRAGE_AUTH_TOKEN, else ~/.mirage/auth_token. It
has no key in config.toml. See
Configure authentication.
MIRAGE_HOME sets the folder Mirage keeps its files in, ~/.mirage by
default: config.toml, state/, snapshots/, the daemon’s log and the rest.
It has no key in config.toml, because that file lives inside it.