Files
marketplaces/src/environments/environment.ts

29 lines
865 B
TypeScript
Raw Normal View History

2026-07-05 00:51:29 +04:00
// Marketplace Configuration
2026-01-18 18:57:06 +04:00
export const environment = {
production: false,
2026-03-24 00:09:11 +04:00
useMockData: false, // Toggle to test with backOffice mock data
useMockBootstrapOnLocal: true,
fallbackTenantKey: 'default',
localhostApiUrl: '/api',
tenantApiTemplate: '{protocol}//api.{baseDomain}',
tenantApiBaseUrls: {},
2026-07-05 00:51:29 +04:00
brandName: 'Marketplace',
brandFullName: 'Marketplace',
2026-01-18 18:57:06 +04:00
theme: 'dexar',
2026-03-24 00:09:11 +04:00
apiUrl: '/api',
2026-06-05 18:23:24 +04:00
qrApiUrl: 'https://qr.vitanova.network/api',
fix(auth): route admin/customer Telegram QR login to the shared auth origin AUTH_API_URL was wired to ApiConfigService.getBaseUrl() (the per-tenant content origin, e.g. api.gorbushka.market), so admin/customer QR-login session creation POSTed to a host with no /users/sessions route. Auth is a single shared cross-tenant service (like payment's qr.vitanova.network), not tenant-scoped - confirmed against the pre-tenant-refactor state (commit a59ffbca) where every brand's environment file carried the identical fixed authApiUrl, and against a live POST to users.vitanova.network:456/users/sessions. Restores authApiUrl as a fixed constant in both environment files and wires AUTH_API_URL/MARKETPLACES_AUTH_CONFIG.apiUrl to it, mirroring the existing qrApiUrl/provideMarketplacesPayment pattern. Also provides MARKETPLACES_AUTH_CONFIG.marketplaceDomain via TenantResolverService's existing getBaseDomain() so the X-Marketplace-Domain header stays normalized instead of falling back to raw, unnormalized location.hostname (it was never provided before, so that fallback was always in effect). No package edits, no path/method/body change, no QR/Telegram flow change. tenantApiTemplate/tenantApiBaseUrls/ApiConfigService/ TenantResolverService untouched - still drive content-API resolution only. Known remaining blocker (server-side, tracked in vitanovaPackages BACKEND-TODO.md): users.vitanova.network:456 CORS-rejects the admin.gorbushka.market origin outright (403 on preflight, no allow headers) while novo.market gets a full grant - this fix alone will not make browser login work on gorbushka domains until that origin allowlist is updated.
2026-08-24 14:14:30 +04:00
authApiUrl: 'https://users.vitanova.network:456',
2026-07-05 00:51:29 +04:00
logo: '/icons/icon-192x192.png',
2026-01-18 18:57:06 +04:00
contactEmail: 'info@dexarmarket.ru',
supportEmail: 'info@dexarmarket.ru',
domain: 'dexarmarket.ru',
telegram: '@dexarmarket',
2026-06-01 00:47:26 +04:00
telegramBot: 'myAMLKYCBOT',
2026-01-18 18:57:06 +04:00
phones: {
russia: '+7 (926) 459-31-57',
2026-04-14 22:28:34 +04:00
armenia: '+374 94 86 18 16',
support: '+7 (926) 459-31-57'
},
phoneTel: 'tel:+79264593157'
2026-01-18 18:57:06 +04:00
};