Upsun config
Upsun configuration file
| Type | object |
|---|---|
| File match |
**/.upsun/config.yml
**/.upsun/config.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/upsun-config/latest.json |
| Source | https://meta.upsun.com/schema/upsun |
Validate with Lintel
npx @lintel/lintel check
Properties
Each route describes how an incoming URL is going to be processed by Upsun.
More information:
https://docs.upsun.com/define-routes.html
Each service listed will be deployed to power your Upsun project.
More information:
https://docs.upsun.com/add-services.html
Full list of available services:
https://docs.upsun.com/add-services.html#available-services
Definitions
Leave blank to allow it to be set dynamically. More information: https://docs.upsun.com/manage-resources/adjust-resources.html#adjust-a-container-profile
Directories that are writable even after the app is built. Allocated disk for mounts is defined with a separate resource configuration call using upsun resources:set.
Contains a dictionary of mounts:
https://docs.upsun.com/create-apps/app-reference/single-runtime-image.html#mounts
Contains a dictionary of relationships: https://docs.upsun.com/create-apps/app-reference/single-runtime-image.html#relationships
More information: https://docs.upsun.com/create-apps/app-reference/single-runtime-image.html#firewall
More information: https://docs.upsun.com/create-apps/app-reference/single-runtime-image.html#workers
[]
If true, this route is the primary route of the environment
A unique identifier for the route. See route identifiers: https://docs.upsun.com/define-routes.html#route-identifiers
Arbitrary attributes attached to this resource: https://docs.upsun.com/define-routes.html#route-attributes
More information: https://docs.upsun.com/define-routes.html#route-configuration-reference
Defines redirects for partial routes. For definition and options, see the redirect rules: https://docs.upsun.com/define-routes/redirects.html
More information: https://docs.upsun.com/define-routes/redirects.html#partial-redirects
Examples of valid values include 3600s, 1d, 2w, 3m.
To disable caching for all your redirects, set expires to 0. You can also disable caching on a specific redirect:
https://docs.upsun.com/define-routes/redirects.html#disable-caching-on-your-redirects
The absolute URL or other route to which the given route should be redirected with an HTTP 301 status code. https://docs.upsun.com/define-routes/https.html#optional-configure-tls-connections
{
"preload": null,
"include_subdomains": false,
"enabled": false
}
3 nested properties
If set to true, HSTS is enabled for 1 year.
If set to false, other properties are ignored.
To add your website to the HSTS preload list: https://hstspreload.org/. Thanks to this list, most browsers are informed that your site requires HSTS before an HSTS header response is even issued.
Note that TLS versions older than 1.2 are deprecated and are rejected by default.
The type of client authentication to request.
If not specified, a default set of trusted CAs will be used. More Information: https://docs.upsun.com/define-routes/https.html#enable-mtls
[]
The absolute URL or other route to which the given route should be redirected with an HTTP 301 status code. A relative URL - '/destination', or absolute URL - 'https://example.com/' More information: https://docs.upsun.com/define-routes/redirects.html#partial-redirects
[
"*"
]
[
"Accept",
"Accept-Language"
]
More information: https://docs.upsun.com/define-routes.html#route-configuration-reference
More information: https://docs.upsun.com/define-routes/ssi.html
The name of the app to be served (as defined in your app configuration) followed by :http. Example: app:http More information: https://docs.upsun.com/define-routes.html#route-configuration-reference
Leave blank to allow it to be set dynamically.