Repository navigation
Expand file tree
/
Copy pathconfig.js
More file actions
53 lines (46 loc) · 1.67 KB
/
Copy pathconfig.js
File metadata and controls
53 lines (46 loc) · 1.67 KB
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
const config = {
// Authentication
// Enable password protection and configure authorized users.
challenge: false,
users: {
interstellar: "password",
},
// Blocked Domains
// Block access to specified domains and their subdomains.
// Use hostnames only, without protocols or paths.
blockedSites: ["googletagmanager.com", "amazon-adsystem.com", "doubleclick.net", "analytics.google.com"],
// DNS Filtering
// Configure DNS-based content filtering and privacy protection.
filtering: {
enabled: false,
cloudflareFamilies: true, // Block malware and adult content.
adblock: true,
blockTrackers: true,
},
// Caching
// When enabled, built images, scripts and styles are cached by the browser until a new build changes them
cache: {
enabled: true,
},
// Masqr
// Restrict access to Interstellar using decoy sites and search triggers.
masqr: {
enabled: false,
decoy: "/default/",
searchTrigger: "interstellar", // Default trigger for unlisted domains.
secureCookie: true,
sessionDays: 30,
decoyOnly: false, // Only enable Masqr on hosts with configured decoys.
// Named decoy folders can serve several domains. For example,
// static/decoy/pinkmath/domains.json can contain
// ["pinkmath.com", "pinkmath.org", "pinkmath.edu"].
// Domain-Specific Triggers
// Apply custom search triggers to groups of domains sharing a name.
// Unlisted domains use the global searchTrigger.
sites: [
{ name: "example1", tlds: ["org", "com", "net"], searchTrigger: "example1" },
{ name: "interstellar", tlds: ["com", "net", "xyz"], searchTrigger: "interstellar2" },
],
},
};
export default config;