This repository has been archived by the owner on Oct 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
/
config.json
109 lines (85 loc) · 3.9 KB
/
config.json
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// nconf default options expressed in hjson format
// Order of precendence is:
// 1. Command line arguments
// 2. Environment variables
// 3. Values in the package config.json (shown below)
{
///////////////////////////
// Dashboard Server options
///////////////////////////
// Mode in which the dashboard server express environment runs
NODE_ENV: development
// Interface on which the dashboard server listens
IP: 127.0.0.1
// Port on which the dashboard server listens
PORT: 3000
// Base path under which all paths are served. If running behind a reverse proxy which strips
// the base URL before passing requests to this server, then wrap value in '[]'.
// For example, if BASE_URL = "/foo", then
// proxied req "http://host/foo/bar" -> dashboard server request "/foo/bar"
// If BASE_URL = "[/foo]", then
// proxied req "http://host/foo/bar" -> dashboard server request "/bar"
// Note that in the 2nd case, client-side files will still need to contain the BASE_URL.
BASE_URL: ""
// Set when running this server behind a proxy. Passed directly to Express. Possible values
// can be found here: https://expressjs.com/en/guide/behind-proxies.html
//TRUST_PROXY: true
// Base URL pattern for building public link for an uploaded notebook.
// Supports placeholder strings (values come from request host header):
// {protocol} - request protocol (HTTP or HTTPS)
// {host} - value of the host header, (hostname[:port])
// {port} - port extracted from the host header
// {baseUrl} - base URL for paths, as defined by BASE_URL
// Examples using placeholders: {protocol}://{host}
// {protocol}://192.168.99.100:{port}
// {protocol}://192.168.99.100:{port}/{baseUrl}
PUBLIC_LINK_PATTERN: http://127.0.0.1:3000/{baseUrl}
// HTTPS_PORT, HTTPS Port on which the dashboard server listens
HTTPS_PORT: 3001
// Optional HTTPS key
HTTPS_KEY_FILE: null
// Optional HTTPS certificate
HTTPS_CERT_FILE: null
// Cookie session secret (default: randomly generate)
SESSION_SECRET_TOKEN: null
// Directory that contains notebooks to serve as dashboards relative to
// the current working directory. Defaults to <package-dir>/data if left
// unset.
NOTEBOOKS_DIR: ""
// Secret for authentication tokens
AUTH_TOKEN: null
// User auth strategy (default: no auth)
AUTH_STRATEGY: null
// Username/password for ./app/auth-local strategy
USERNAME: null
PASSWORD: null
// "Presentation Mode" - Disable all UI Chrome, only render a dashboard
PRESENTATION_MODE: false
/////////////////////////
// Kernel Gateway options
/////////////////////////
// URL of the kernel gateway / jupyter notebook server to contact for kernels
KERNEL_GATEWAY_URL: http://localhost:8888
// Authorization token required for kernel gateway requests
KG_AUTH_TOKEN: null
// Kernel gateway base URL (gets appended to KERNEL_GATEWAY_URL)
KG_BASE_URL: ""
// Delay kernel cleanup for this many milliseconds to allow a client to reconnect
KG_KERNEL_RETENTIONTIME: 30000
// Forward auth strategy user profile to every kernel launched for every dashboard visited on the server
// e.g., so the kernel can re-use an auth token to access an external service
KG_FORWARD_USER_AUTH: false
////////////////////////////////
// Proxy & other backend options
////////////////////////////////
// Additional network settings for communicating with backend (e.g. proxy)
// - if backend requires basic auth, set 'user'/'password'
// - if backend requires additional headers on each request, set in 'requestHeaders'
//PROXY_SETTINGS: {
// user: fakeuser
// password: fakepass
// requestHeaders: {
// fake-header: somevalue
// }
//}
}