1// Konfigurace pro pxe.cz (server rimmer, /opt/pxe.cz/prg) 2// !!! it is necessary to follow the JSON structure !!! 3// 4// Aplikace bÄžà v koÅeni domény, jazykové mutace jsou podadresáÅe 5// /cs/ a /en/ (base href z angular.json i18n, nepÅepisuje se). 6// 7// Specifika prostÅedÃ: 8// - CMS obsah se Äte ze statického snapshotu (Squidex je vyÅazen), 9// cesty k souborům jsou relativnÃ, aby je vyhodnotil <base href>, 10// - tržnà data jdou pÅes same-origin proxy /pxeapi, stejnÄ jako na 11// test.pxe.cz. DÅÃv se volalo //webapi.pxe.cz pÅÃmo z prohlÞeÄe; 12// to fungovalo (webapi posÃlá CORS hlaviÄky právÄ pro pxe.cz a 13// www.pxe.cz), ale vázalo web na VEÅEJNà certifikát webapi.pxe.cz. 14// PÅes proxy na nÄj prohlÞeÄ nechodÃ, takže certifikát ani CORS 15// whitelist nejsou potÅeba - a na alfÄ se dá pÅepÃnat mezi starým 16// backendem a novou REST fasádou bez zásahu do webu. 17// Cesta: prohlÞeÄ -> nginx /pxeapi -> alfa-prg-sc:8800 -> webapi. 18// (Rimmer na webapi pÅÃmo nedosáhne, hairpin NAT - proto pÅes alfu.) 19// - cacheSSR nemá vliv, nasazenà je statické (bez Node/SSR procesu). 20 21window.pxeConfig = { 22 "config": { 23 "gaId": "GTM-PCPLWS4", 24 "environment": "prod", 25 "gtmId": "GTM-P635JM7", 26 "sAnalyticsTId": "SA-00080-1", 27 "production": true, 28 "url": "https://pxe.cz", 29 "url_cms_api_assets": "assets/cms-files/", 30 "web_api_key": "default-api-key", 31 "x_api_key": "6DBE159EAAB67C2AFD31DED689608711", 32 "includeTestData": false, 33 "cacheSSR": true, 34 "widgetsUrl": "//widgets.gvsi.com/webtools", 35 "pxeApi": { 36 "spotPrice": "/pxeapi/api/pxe/gasspots", 37 "ticker": "/pxeapi/api/pxe/ticker", 38 "pxeMarkets": "/pxeapi/api/pxe/frontmap", 39 "PARCTransactions": "/pxeapi/api/pxe/parctransactions", 40 "PARCActualPrice": "/pxeapi/api/pxe/parcactualprice", 41 "PARCActualPriceYears": "/pxeapi/api/pxe/parcactualpriceyears", 42 "HomepageTariffFull": "https://parc4u.cz/api/v1.0/web-graph" 43 }, 44 "cookie_policy_url": { 45 "cs": "/cs/o-nas/ochrana-osobnich-udaju-a-nastaveni-cookies", 46 "en": "/en/about-us/personal-data-protection-and-cookie-settings" 47 } 48 } 49};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.