mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03:00
Set front url metadata for SES (#2555)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
d1fb81582d
commit
b8fd815947
@ -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:
|
||||
|
@ -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 '.'
|
||||
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user