TSK-842: Fix resume recognition functionality (#2736)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-03-15 23:36:50 +07:00
committed by GitHub
parent fff4debc49
commit 3979c1acb7
16 changed files with 95 additions and 51 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ services:
- ACCOUNTS_URL=http://localhost:3000
- REKONI_URL=http://localhost:4004
- COLLABORATOR_URL=ws://localhost:3078
- FRONT_URL=http://front:8080
- GMAIL_URL=http://localhost:8088
- TELEGRAM_URL=http://localhost:8086
- UPLOAD_URL=/files
- TRANSACTOR_URL=ws://localhost:3333
- ELASTIC_URL=http://elastic:9200
+1 -1
View File
@@ -3,7 +3,7 @@ LOGIN_ENDPOINT=ws://localhost:3333
TELEGRAM_URL=http://localhost:8086
GMAIL_URL=http://localhost:8088
FRONT_URL=http://front:8080
FRONT_URL=http://localhost:8080
REKONI_URL=http://localhost:4004
-4
View File
@@ -1,4 +0,0 @@
TELEGRAM_URL = https://telegram.hc.engineering
GMAIL_URL = https://gmail.hc.engineering
REKONI_URL = https://rekoni.hc.engineering
+4 -1
View File
@@ -2,5 +2,8 @@
"ACCOUNTS_URL":"/account",
"COLLABORATOR_URL": "ws://localhost:3078",
"UPLOAD_URL":"/files",
"MODEL_VERSION": null
"MODEL_VERSION": null,
"TELEGRAM_URL": "http://localhost:8086",
"GMAIL_URL": "http://localhost:8088",
"REKONI_URL": "http://localhost:4004"
}
+14 -5
View File
@@ -80,8 +80,18 @@ import { textEditorId } from '@hcengineering/text-editor'
import { setMetadata } from '@hcengineering/platform'
interface Config {
ACCOUNTS_URL: string
UPLOAD_URL: string
MODEL_VERSION: string
COLLABORATOR_URL: string
REKONI_URL: string
TELEGRAM_URL: string
GMAIL_URL: string
}
export async function configurePlatform() {
const config = await (await fetch('/config.json')).json()
const config: Config = await (await fetch('/config.json')).json()
console.log('loading configuration', config)
setMetadata(login.metadata.AccountsUrl, config.ACCOUNTS_URL)
setMetadata(login.metadata.UploadUrl, config.UPLOAD_URL)
@@ -92,12 +102,11 @@ export async function configurePlatform() {
console.log('Minimal Model version requirement', config.MODEL_VERSION)
setMetadata(presentation.metadata.RequiredVersion, config.MODEL_VERSION)
}
setMetadata(login.metadata.TelegramUrl, process.env.TELEGRAM_URL ?? 'http://localhost:8086')
setMetadata(login.metadata.GmailUrl, process.env.GMAIL_URL ?? 'http://localhost:8087')
setMetadata(login.metadata.TelegramUrl, config.TELEGRAM_URL ?? 'http://localhost:8086')
setMetadata(login.metadata.GmailUrl, config.GMAIL_URL ?? 'http://localhost:8087')
setMetadata(login.metadata.OverrideEndpoint, process.env.LOGIN_ENDPOINT)
setMetadata(login.metadata.FrontUrl, process.env.FRONT_URL)
setMetadata(rekoni.metadata.RekoniUrl, process.env.REKONI_URL)
setMetadata(rekoni.metadata.RekoniUrl, config.REKONI_URL)
setMetadata(uiPlugin.metadata.DefaultApplication, login.component.LoginApp)