mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-03 00:43:59 +03:00
Qfix: use http for local and test brandings (#5980)
This commit is contained in:
parent
cd5db6a9c3
commit
a4714150ac
@ -75,6 +75,7 @@ export interface Branding {
|
||||
language?: string
|
||||
initWorkspace?: string
|
||||
lastNameFirst?: string
|
||||
protocol?: string
|
||||
}
|
||||
|
||||
export type BrandingMap = Record<string, Branding>
|
||||
|
@ -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}/`
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
{
|
||||
"localhost:8083": {
|
||||
"key": "huly",
|
||||
"title": "Platform",
|
||||
"protocol": "http",
|
||||
"languages": "en,ru,pt,es,zh,fr",
|
||||
"defaultLanguage": "en",
|
||||
"defaultApplication": "tracker",
|
||||
|
Loading…
Reference in New Issue
Block a user