-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
117 lines (90 loc) · 3.34 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# SPDX-FileCopyrightText: 2023 Double Open Oy
#
# SPDX-License-Identifier: MIT
# DO NOT ADD SECRETS TO THIS FILE. Use .env instead.
##########################################################################
# Always compulsory:
##########################################################################
# Prisma doesn't currently support giving a default value in case DATABASE_URL is empty, see https://github.com/prisma/prisma/issues/222
DATABASE_URL=
# API URL
NEXT_PUBLIC_API_URL=http://localhost:5000/api/
##########################################################################
# Compulsory in production (aka when NODE_ENV=production):
##########################################################################
# Keycloak variables for the API and UI
KEYCLOAK_URL=
KEYCLOAK_REALM=
KEYCLOAK_CLIENT_ID_API=
KEYCLOAK_CLIENT_SECRET_API=
KEYCLOAK_CLIENT_ID_UI=
KEYCLOAK_CLIENT_SECRET_UI=
# NEXTAUTH specific settings
NEXTAUTH_URL= # http://localhost:3000
NEXTAUTH_SECRET=
# S3 bucket env variables
SPACES_ENDPOINT= # default http://localhost:9000
SPACES_KEY= # default miniouser
SPACES_SECRET= # default miniopassword
SPACES_BUCKET= # default doubleopen
# Redis related variables
REDIS_URL= # default redis://localhost:6379
REDIS_PW= # default redis
# Session and cookie secret tokens
SESSION_SECRET= # default secret
COOKIE_SECRET= # default secret
##########################################################################
# Optional:
##########################################################################
# Environment (development/production)
NODE_ENV=
###########
# API
###########
# Port
PORT= # default 5000
# Allowed origins for CORS
ALLOWED_ORIGINS= # default http://localhost:3000
# Scanner timeout in seconds
SCANNER_TIMEOUT= # default 1200
# Log level
LOG_LEVEL= # default info, options: trace/debug/info/warn/error/silent (although note that this hasn't been taken into use everywhere yet, so the log level might be higher than what you set here)
# Database query concurrency and query retry count and interval
DB_CONCURRENCY= # default 10
DB_RETRIES= # default 5
DB_RETRY_INTERVAL= # default 1000
# S3 upload concurrency, retries and interval
UL_CONCURRENCY= # default 10
UL_RETRIES= # default 3
UL_RETRY_INTERVAL= # default 1000
# S3 download concurrency
DL_CONCURRENCY= # default 1
# Retries for asking Scanner Agent to add new job to job queue
NEW_JOB_RETRIES= # default 3
NEW_JOB_RETRY_INTERVAL= # default 1000
# Rescan schedule for rescanning files with timeout issues
RESCAN_SCHEDULE= # default every day at midnight 0 0 * * *
# ┌────────────── second (optional)
# │ ┌──────────── minute
# │ │ ┌────────── hour
# │ │ │ ┌──────── day of month
# │ │ │ │ ┌────── month
# │ │ │ │ │ ┌──── day of week
# │ │ │ │ │ │
# │ │ │ │ │ │
# * * * * * *
########################
# Scanner Worker
########################
# S3 download concurrency for Scanner Worker
DL_CONCURRENCY= # default 1
# ScanCode config
SCANCODE_FILES_IN_MEMORY= # default 10000
SCANCODE_PROCESSES= # default 1
# Worker count for ScanCode:
WEB_CONCURRENCY= # default 1
#####################
# Clearance UI
#####################
# Refetch interval used to refresh session (seconds)
REFETCH_INTERVAL= # default 60