Qfix: use http for local and test brandings (#5980)

This commit is contained in:
Alexey Zinoviev 2024-07-02 18:07:24 +04:00 committed by GitHub
parent cd5db6a9c3
commit a4714150ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -75,6 +75,7 @@ export interface Branding {
language?: string
initWorkspace?: string
lastNameFirst?: string
protocol?: string
}
export type BrandingMap = Record<string, Branding>

View File

@ -192,7 +192,8 @@ export function loadBrandingMap (brandingPath?: string): BrandingMap {
brandings = JSON.parse(fs.readFileSync(brandingPath, 'utf8'))
for (const [host, value] of Object.entries(brandings)) {
value.front = `https://${host}/`
const protocol = value.protocol ?? 'https'
value.front = `${protocol}://${host}/`
}
}

View File

@ -1,6 +1,8 @@
{
"localhost:8083": {
"key": "huly",
"title": "Platform",
"protocol": "http",
"languages": "en,ru,pt,es,zh,fr",
"defaultLanguage": "en",
"defaultApplication": "tracker",