Set front url metadata for SES (#2555)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-01-29 21:32:37 +06:00 committed by GitHub
parent d1fb81582d
commit b8fd815947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -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:

View File

@ -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

View File

@ -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