mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-16 21:35:10 +00:00
UBERF-6515 Remove TRANSACTOR_URL from front configuration (#5800)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
617d835c4f
commit
54e1f79e27
@ -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
|
||||||
|
@ -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",
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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,
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user