UBERF-6515 Remove TRANSACTOR_URL from front configuration (#5800)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-06-13 12:16:54 +07:00 committed by GitHub
parent 617d835c4f
commit 54e1f79e27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 1 additions and 14 deletions

View File

@ -80,7 +80,6 @@ services:
- GMAIL_URL=http://localhost:8088 - GMAIL_URL=http://localhost:8088
- TELEGRAM_URL=http://localhost:8086 - TELEGRAM_URL=http://localhost:8086
- UPLOAD_URL=/files - UPLOAD_URL=/files
- TRANSACTOR_URL=ws://localhost:3333
- ELASTIC_URL=http://elastic:9200 - ELASTIC_URL=http://elastic:9200
- COLLABORATOR_URL=ws://localhost:3078 - COLLABORATOR_URL=ws://localhost:3078
- COLLABORATOR_API_URL=http://localhost:3078 - COLLABORATOR_API_URL=http://localhost:3078

View File

@ -21,7 +21,7 @@
"docker:push": "../../common/scripts/docker_tag.sh hardcoreeng/front", "docker:push": "../../common/scripts/docker_tag.sh hardcoreeng/front",
"docker:tbuild": "docker build -t hardcoreeng/front . --platform=linux/amd64 && ../../common/scripts/docker_tag_push.sh hardcoreeng/front", "docker:tbuild": "docker build -t hardcoreeng/front . --platform=linux/amd64 && ../../common/scripts/docker_tag_push.sh hardcoreeng/front",
"format": "format src", "format": "format src",
"run-local": "cross-env MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost TRANSACTOR_URL=ws://localhost:3333 SERVER_SECRET='secret' ACCOUNTS_URL=http://localhost:3000 UPLOAD_URL=/files ELASTIC_URL=http://localhost:9200 MODEL_VERSION=$(node ../../common/scripts/show_version.js) PUBLIC_DIR='.' ts-node ./src/__start.ts", "run-local": "cross-env MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost SERVER_SECRET='secret' ACCOUNTS_URL=http://localhost:3000 UPLOAD_URL=/files ELASTIC_URL=http://localhost:9200 MODEL_VERSION=$(node ../../common/scripts/show_version.js) PUBLIC_DIR='.' ts-node ./src/__start.ts",
"test": "jest --passWithNoTests --silent --forceExit", "test": "jest --passWithNoTests --silent --forceExit",
"_phase:build": "compile transpile src", "_phase:build": "compile transpile src",
"_phase:test": "jest --passWithNoTests --silent --forceExit", "_phase:test": "jest --passWithNoTests --silent --forceExit",

View File

@ -2,7 +2,6 @@
export ACCOUNTS_URL=http://localhost:3333 export ACCOUNTS_URL=http://localhost:3333
export UPLOAD_URL=http://localhost:3333/files export UPLOAD_URL=http://localhost:3333/files
export TRANSACTOR_URL=ws://localhost:3333
export ELASTIC_URL=http://elastic:9200 export ELASTIC_URL=http://elastic:9200
export COLLABORATOR_URL=ws://localhost:3078 export COLLABORATOR_URL=ws://localhost:3078
export COLLABORATOR_API_URL=http://localhost:3078 export COLLABORATOR_API_URL=http://localhost:3078

View File

@ -5,7 +5,6 @@ Front service is suited to deliver application bundles and resource assets, it a
## Configuration ## Configuration
* SERVER_PORT: Specifies the port number on which the server will listen. * SERVER_PORT: Specifies the port number on which the server will listen.
* TRANSACTOR_URL: Specifies the URL of the transactor.
* MONGO_URL: Specifies the URL of the MongoDB database. * MONGO_URL: Specifies the URL of the MongoDB database.
* ELASTIC_URL: Specifies the URL of the Elasticsearch service. * ELASTIC_URL: Specifies the URL of the Elasticsearch service.
* ACCOUNTS_URL: Specifies the URL of the accounts service. * ACCOUNTS_URL: Specifies the URL of the accounts service.

View File

@ -2,7 +2,6 @@
export ACCOUNTS_URL=http://localhost:3333 export ACCOUNTS_URL=http://localhost:3333
export UPLOAD_URL=http://localhost:3333/files export UPLOAD_URL=http://localhost:3333/files
export TRANSACTOR_URL=ws://localhost:3333
export ELASTIC_URL=http://elastic:9200 export ELASTIC_URL=http://elastic:9200
export MINIO_ENDPOINT=minio export MINIO_ENDPOINT=minio
export MINIO_ACCESS_KEY=minioadmin export MINIO_ACCESS_KEY=minioadmin

View File

@ -221,7 +221,6 @@ async function getFile (
export function start ( export function start (
ctx: MeasureContext, ctx: MeasureContext,
config: { config: {
transactorEndpoint: string
elasticUrl: string elasticUrl: string
storageAdapter: StorageAdapter storageAdapter: StorageAdapter
accountsUrl: string accountsUrl: string

View File

@ -24,12 +24,6 @@ import { start } from '.'
export function startFront (ctx: MeasureContext, extraConfig?: Record<string, string | undefined>): void { export function startFront (ctx: MeasureContext, extraConfig?: Record<string, string | undefined>): void {
const SERVER_PORT = parseInt(process.env.SERVER_PORT ?? '8080') const SERVER_PORT = parseInt(process.env.SERVER_PORT ?? '8080')
const transactorEndpoint = process.env.TRANSACTOR_URL
if (transactorEndpoint === undefined) {
console.error('please provide transactor url')
process.exit(1)
}
const url = process.env.MONGO_URL const url = process.env.MONGO_URL
if (url === undefined) { if (url === undefined) {
console.error('please provide mongodb url') console.error('please provide mongodb url')
@ -117,7 +111,6 @@ export function startFront (ctx: MeasureContext, extraConfig?: Record<string, st
setMetadata(serverToken.metadata.Secret, serverSecret) setMetadata(serverToken.metadata.Secret, serverSecret)
const config = { const config = {
transactorEndpoint,
elasticUrl, elasticUrl,
storageAdapter, storageAdapter,
accountsUrl, accountsUrl,

View File

@ -67,7 +67,6 @@ services:
- ACCOUNTS_URL=http://localhost:3003 - ACCOUNTS_URL=http://localhost:3003
- MONGO_URL=mongodb://mongodb:27018 - MONGO_URL=mongodb://mongodb:27018
- UPLOAD_URL=/files - UPLOAD_URL=/files
- TRANSACTOR_URL=ws://localhost:3334
- ELASTIC_URL=http://elastic:9200 - ELASTIC_URL=http://elastic:9200
- GMAIL_URL=http://localhost:8088 - GMAIL_URL=http://localhost:8088
- CALENDAR_URL=http://localhost:8095 - CALENDAR_URL=http://localhost:8095