Data Types

WebStorage

Storage layer used for serving files from external HTTP origins.

This is a read-only storage layer.

Structure

{
"baseUrl": String | Null,
"type": String
}

Example

{
"baseUrl": "https://images.unsplash.com/",
"type": "Web"
}

Properties

baseUrl

Base URL to proxy requests to. Should contain a trailing /.

If baseUrl is set to null, then this folder will behave as an open reverse proxy.

Example 1: if the baseUrl is null and the folder you're configuring the storage layer on is:

https://upcdn.io/abc1234/raw/demo

Then you can issue requests such as:

https://upcdn.io/abc1234/raw/demo/https://images.unsplash.com/example.jpg

Example 2: if the baseUrl is:

https://images.unsplash.com/

And the folder you're configuring the storage layer on is:

https://upcdn.io/abc1234/raw/demo

Then you can issue requests such as:

https://upcdn.io/abc1234/raw/demo/test/example.jpg

Which will be routed to the URL:

https://images.unsplash.com/test/example.jpg

Type: String | Null

Min Length: 1

Max Length: 255

Example: "https://images.unsplash.com/"

Required: Yes

type

The type of this storage layer.

Type: String

Value: "Web"

Required: Yes

Used by

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: