forked from radiantearth/stac-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
54 lines (54 loc) · 1.44 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
const TITLE = "Copernicus Data Space Ecosystem (CDSE) - STAC API";
module.exports = {
catalogUrl: "https://stac.dataspace.copernicus.eu/v1/",
catalogTitle: TITLE,
allowExternalAccess: false,
allowedDomains: [
"copernicus.eu"
],
detectLocaleFromBrowser: true,
storeLocale: true,
locale: "en",
fallbackLocale: "en",
supportedLocales: [
"de",
"es",
"en",
"fr",
"it",
"ro",
"pt"
],
apiCatalogPriority: null,
useTileLayerAsFallback: false,
displayGeoTiffByDefault: false,
buildTileUrlTemplate: null,
stacProxyUrl: null,
pathPrefix: "/",
historyMode: "history",
cardViewMode: "cards",
cardViewSort: "asc",
showKeywordsInItemCards: false,
showKeywordsInCatalogCards: false,
showThumbnailsAsAssets: false,
geoTiffResolution: 128,
redirectLegacyUrls: false,
itemsPerPage: 12,
maxItemsPerPage: 1000,
defaultThumbnailSize: null,
maxPreviewsOnMap: 50,
crossOriginMedia: null,
requestHeaders: {},
requestQueryParameters: {},
socialSharing: ['email', 'bsky', 'mastodon', 'x'],
preprocessSTAC: stac => {
if (stac.getBrowserPath() === '/') {
stac.title = TITLE;
}
return stac;
},
authConfig: {
type: "openIdConnect",
openIdConnectUrl:"https://identity.dataspace.copernicus.eu/auth/realms/CDSE/.well-known/openid-configuration"
}
};