You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
886 B
34 lines
886 B
import { PluginRegistry } from "../pluginRegistry.js"; |
|
|
|
PluginRegistry.register('cdn', { |
|
type: 'cdn', |
|
label: 'CDN', |
|
props: [ |
|
{ name: 'label', type: 'string', default: 'CDN', group: 'label-group' }, |
|
{ name: 'ttl', type: 'number', default: 3600, group: 'cdn-group' }, |
|
{ |
|
name: 'geoReplication', |
|
type: 'string', |
|
default: 'global', |
|
group: 'cdn-group' |
|
}, |
|
{ |
|
name: 'cachingStrategy', |
|
type: 'string', |
|
default: 'cache-first', |
|
group: 'cdn-group' |
|
}, |
|
{ |
|
name: 'compression', |
|
type: 'string', |
|
default: 'brotli', |
|
group: 'cdn-group' |
|
}, |
|
{ |
|
name: 'http2', |
|
type: 'string', |
|
default: 'enabled', |
|
group: 'cdn-group' |
|
} |
|
] |
|
});
|
|
|