-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.example.js
64 lines (59 loc) · 1.6 KB
/
config.example.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
module.exports = {
cloudflare: true, // Restore original visitor ips
servers: {
"example.com": {
proxy_pass: "http://base_domain", // example.com
subdomains: {
// Basic Usage, can be shortened
www: {
// www.example.com
proxy_pass: "http://www"
},
// Shortened example, no extra configuration
api: "http://api:3000", // api.example.com
// Custom CSS example
adguard: {
// adguard.example.com
proxy_pass: "http://adguard",
// This file gets downloaded and compressed, its then appended to the <head>
custom_css:
"https://theme-park.dev/css/base/adguard/organizr.css"
},
// Custom JS example
custom: {
// custom.example.com
proxy_pass: "http://custom",
// This file gets downloaded, its then appended to the <body>
custom_js:
"https://example.com/custom-javascript-injected.js"
},
// Advanced example: Enables darkmode on vaultwarden and enables a websocket on a different location
bitwarden: {
proxy_pass: "http://bitwarden",
custom_css:
"https://theme-park.dev/css/base/bitwarden/organizr.css",
locations: {
"/notifications/hub": {
proxy_pass: "http://bitwarden:3012",
websocket: true
},
"/notifications/hub/negotiate": "http://bitwarden"
}
},
// Simple message
text: {
html: "Hello World!"
},
// Auth example
auth: {
proxy_pass: "http://super_secret",
auth: {
username: "username",
password: "password"
}
}
}
},
"second_domain.com": "http://second" // defaults to proxy_pass
}
};