Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ services:
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- REKONI_URL=http://rekoni:4004
- FRONT_URL=http://localhost:8087
# - APM_SERVER_URL=http://apm-server:8200
restart: unless-stopped
rekoni:
Expand Down
8 changes: 8 additions & 0 deletions pods/server/src/__start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
//

// Add this to the VERY top of the first file loaded in your app
import login from '@hcengineering/login'
import { setMetadata } from '@hcengineering/platform'
import serverToken from '@hcengineering/server-token'
import { start } from '.'
Expand Down Expand Up @@ -69,6 +70,13 @@ if (rekoniUrl === undefined) {
process.exit(1)
}

const frontUrl = process.env.FRONT_URL
if (frontUrl === undefined) {
console.log('Please provide REKONI_URL url')
process.exit(1)
}

setMetadata(login.metadata.FrontUrl, frontUrl)
setMetadata(serverToken.metadata.Secret, serverSecret)

// eslint-disable-next-line @typescript-eslint/no-floating-promises
Expand Down
1 change: 1 addition & 0 deletions tests/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ services:
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- REKONI_URL=http://rekoni:4005
- FRONT_URL=http://localhost:8083
rekoni:
image: hardcoreeng/rekoni-service
restart: on-failure
Expand Down