parent
dc6eb4a6d2
commit
408e3ba78e
4 changed files with 36 additions and 8 deletions
@ -0,0 +1,35 @@ |
|||||||
|
import { resolveGid, resolveUid } from '../shell'; |
||||||
|
|
||||||
|
/** |
||||||
|
* The fallback job progress value when queuing jobs. |
||||||
|
* |
||||||
|
* Ignore jobs by setting this to `100`. |
||||||
|
* |
||||||
|
* @default 0 |
||||||
|
*/ |
||||||
|
export const DEFAULT_JOB_PROGRESS: number = Number.parseInt( |
||||||
|
process.env.DEFAULT_JOB_PROGRESS ?? '0', |
||||||
|
); |
||||||
|
|
||||||
|
/** |
||||||
|
* Port to use by the express app. |
||||||
|
* |
||||||
|
* @default 8080 |
||||||
|
*/ |
||||||
|
export const PORT = Number.parseInt(process.env.PORT ?? '8080'); |
||||||
|
|
||||||
|
/** |
||||||
|
* Process user identifier. Also used to set ownership on the access daemon. |
||||||
|
* |
||||||
|
* @default 'striker-ui-api' |
||||||
|
*/ |
||||||
|
export const PUID = resolveUid(process.env.PUID ?? 'striker-ui-api'); |
||||||
|
|
||||||
|
/** |
||||||
|
* Process group identifier. Also used to set ownership on the access daemon. |
||||||
|
* |
||||||
|
* Defaults to the value set in process user identifier. |
||||||
|
* |
||||||
|
* @default PUID |
||||||
|
*/ |
||||||
|
export const PGID = resolveGid(process.env.PGID ?? PUID); |
@ -1,5 +0,0 @@ |
|||||||
import { resolveGid, resolveUid } from '../shell'; |
|
||||||
|
|
||||||
export const PUID = resolveUid(process.env.PUID ?? 'striker-ui-api'); |
|
||||||
|
|
||||||
export const PGID = resolveGid(process.env.PGID ?? PUID); |
|
@ -1 +0,0 @@ |
|||||||
export const PORT = process.env.PORT ?? 8080; |
|
Loading…
Reference in new issue