shim.toml reference
One optional file that describes the app.
shim.toml lives in the folder you deploy from. Only name is required. shim deploy applies the file on every deploy, and shim plan shows what it would change without changing anything.
A key you leave out is left alone: the app keeps whatever was set with the command line or the dashboard. A key that is not listed on this page is an error.
name = "budget"
visibility = "private"
share = ["mom@example.com", "dad@example.com"]
share_domains = ["acme.com"]
public_paths = ["/health", "/webhooks/"]
cookies = "isolated"
database = { dedicated = "small" }
domains = ["budget.example.com"]
callers = ["reports"]
[env]
LOG_LEVEL = "info"
REGION = "eu"name
The app's name, and the first part of its address: name = "budget" serves https://budget.shim.live. Use 1 to 40 lowercase letters, digits or hyphens, starting and ending with a letter or digit, with no double hyphens. Some names such as www, api and admin are reserved.
Without a shim.toml, the folder name is used and the file is written on the first deploy.
visibility
"private" or "public". A private app opens only for you and the people you share it with. A public app opens for anyone with the address. New apps are private. See Private apps and sharing.
share
The list of email addresses that can open a private app, up to 500 in the file and never more than your plan allows. When this key is present the list is exact: a deploy adds the addresses that are missing and removes access for anyone who is not on it.
share_domains
Email domains whose addresses can open a private app, up to 10 in the file and never more than your plan allows. When this key is present the list is exact: a deploy adds the domains that are missing and removes the ones that are not listed. Public mail providers such as gmail.com are refused. See Share with everyone at a domain.
public_paths
Up to 10 path prefixes of a private app that anyone may reach without signing in, such as "/health" or "/webhooks/". When this key is present the list is exact: a deploy adds the paths that are missing and removes the ones that are not listed. See Public paths on a private app.
[env]
Variables that are not secret. When this table is present it is exact for non-secret variables: a deploy sets the ones listed and removes non-secret variables that are not listed.
- Secrets are never touched by the file. A variable set with
shim env set --secretkeeps its value even if the same name appears here. - Do not put secrets in
shim.toml; set them withshim env set --secret. DATABASE_URLis ignored here while the app has a database, because Shim sets it.
Names and size limits are on Variables and secrets.
cookies
"isolated" (the default) or "shared". See Cookies.
database
database = { dedicated = "small" } gives the app a dedicated Postgres database; the size is small, medium or large. A deploy creates the database if the app has none. It never deletes or resizes one: if the file asks for something different from what exists, the deploy says so and leaves the database as it is. See Databases.
domains
Up to 10 domain names of your own to serve the app on. A deploy adds the ones that are missing and never removes one; use shim domain remove for that. See Custom domains.
callers
Up to 50 names of your other apps that may call this one. A deploy adds the ones that are missing and never removes one; use shim disconnect for that. See Connected apps.