-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathurls.js
38 lines (35 loc) · 1.69 KB
/
urls.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
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/* please keep keys in this object sorted */
module.exports = (env = "sandbox") => {
if (env === "sandbox") {
return {
ENDPOINT_HPNV2_ANONYMOUS: "https://collector.wdp.brave.software", // hpnv2/sources/endpoints.es
ENDPOINT_HPNV2_DIRECT: "https://collector.wdp.brave.software", // hpnv2/sources/endpoints.es
ENDPOINT_PATTERNS: "https://patterns.hpn.brave.software/patterns.gz",
ENDPOINT_SAFE_QUORUM_PROVIDER: "https://safe-browsing-quorum.hpn.brave.software/config",
ENDPOINT_STAR: "https://star.wdp.brave.software/",
FETCHER_GATEWAY: "https://fg.search.brave.com",
};
}
if (env === "production") {
return {
ENDPOINT_HPNV2_ANONYMOUS: "https://collector.wdp.brave.com", // hpnv2/sources/endpoints.es
ENDPOINT_HPNV2_DIRECT: "https://collector.wdp.brave.com", // hpnv2/sources/endpoints.es
ENDPOINT_PATTERNS: "https://patterns.wdp.brave.com/patterns.gz",
ENDPOINT_SAFE_QUORUM_PROVIDER: "https://quorum.wdp.brave.com/config",
ENDPOINT_STAR: "https://star.wdp.brave.com/",
FETCHER_GATEWAY: "https://fg.search.brave.com",
};
}
if (env === "local") {
return {
ENDPOINT_HPNV2_ANONYMOUS: "http://127.0.0.1:3001", // hpnv2/sources/endpoints.es
ENDPOINT_HPNV2_DIRECT: "http://127.0.0.1:3001", // hpnv2/sources/endpoints.es
ENDPOINT_PATTERNS: "http://127.0.0.1:8000/hw-patterns.gz",
ENDPOINT_SAFE_QUORUM_PROVIDER: "http://127.0.0.1:7100/config",
FETCHER_GATEWAY: "http://localhost:8083",
};
}
};