mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +03:00
Add pushPublicKey to front (#6043)
* Add pushPublicKey to front Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com> * Fix formatting Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com> --------- Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
55af032065
commit
f815d1e4f5
@ -240,6 +240,7 @@ export function start (
|
||||
collaboratorApiUrl: string
|
||||
brandingUrl?: string
|
||||
previewConfig: string
|
||||
pushPublicKey?: string
|
||||
},
|
||||
port: number,
|
||||
extraConfig?: Record<string, string | undefined>
|
||||
@ -279,6 +280,7 @@ export function start (
|
||||
COLLABORATOR_API_URL: config.collaboratorApiUrl,
|
||||
BRANDING_URL: config.brandingUrl,
|
||||
PREVIEW_CONFIG: config.previewConfig,
|
||||
PUSH_PUBLIC_KEY: config.pushPublicKey,
|
||||
...(extraConfig ?? {})
|
||||
}
|
||||
res.set('Cache-Control', cacheControlNoCache)
|
||||
|
@ -106,6 +106,8 @@ export function startFront (ctx: MeasureContext, extraConfig?: Record<string, st
|
||||
previewConfig = `*|${uploadUrl}/:workspace?file=:blobId.:format&size=:size`
|
||||
}
|
||||
|
||||
const pushPublicKey = process.env.PUSH_PUBLIC_KEY
|
||||
|
||||
const brandingUrl = process.env.BRANDING_URL
|
||||
|
||||
setMetadata(serverToken.metadata.Secret, serverSecret)
|
||||
@ -123,7 +125,8 @@ export function startFront (ctx: MeasureContext, extraConfig?: Record<string, st
|
||||
collaboratorUrl,
|
||||
collaboratorApiUrl,
|
||||
brandingUrl,
|
||||
previewConfig
|
||||
previewConfig,
|
||||
pushPublicKey
|
||||
}
|
||||
console.log('Starting Front service with', config)
|
||||
const shutdown = start(ctx, config, SERVER_PORT, extraConfig)
|
||||
|
Loading…
Reference in New Issue
Block a user