-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.js
73 lines (66 loc) · 1.58 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// get openapi schema
import { API } from './src/api.js'
import { dev } from './wrangler.json'
// the packages to proxy
export const PROXIES = []
// allows for globally accessible docs endpoints
export const EXPOSE_DOCS = true
// a global scope that can be used for all packages/registry
export const SCOPE_PACKAGES = false
export const SCOPE = ''
// the global scope/glob pattern for all packages
export const ANY_PACKAGE_SPEC = '*'
// the domain the registry is hosted on
export const DOMAIN = `http://localhost:${dev.port}`
// the time in seconds to cache the registry
export const REQUEST_TIMEOUT = 60 * 1000
// the docs configuration for the API reference
export const API_DOCS = {
metaData: {
title: 'vlt serverless registry'
},
hideModels: false,
hideDownloadButton: false,
darkMode: false,
favicon: '/images/favicon/favicon.svg',
defaultHttpClient: {
targetKey: 'curl',
clientKey: 'fetch',
},
authentication: {
http: {
bearer: {
token: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
},
basic: {
username: 'user',
password: 'pass'
}
}
},
hiddenClients: {
python: true,
c: true,
go: true,
java: true,
ruby: true,
shell: ['httpie', 'wget', 'fetch'],
clojure: true,
csharp: true,
kotlin: true,
objc: true,
swift: true,
r: true,
powershell: false,
ocaml: true,
curl: false,
http: true,
php: false,
node: ['request', 'unirest'],
javascript: ['xhr', 'jquery']
},
spec: {
content: API
},
customCss: `@import '${DOMAIN}/styles/styles.css';`
}