24
24
25
25
docker compose restart web worker
26
26
27
+ Instance settings
28
+ -----------------
29
+
27
30
DATABASE
28
- --------
31
+ ^^^^^^^^
29
32
30
33
The database can be configured using the following settings::
31
34
@@ -38,7 +41,7 @@ The database can be configured using the following settings::
38
41
.. _scancodeio_settings_require_authentication :
39
42
40
43
SCANCODEIO_REQUIRE_AUTHENTICATION
41
- ---------------------------------
44
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
45
43
46
By default, the ScanCode.io Web UI and REST API are available without any
44
47
authentication.
@@ -59,7 +62,7 @@ authentication system in the REST API.
59
62
.. _scancodeio_settings_workspace_location :
60
63
61
64
SCANCODEIO_WORKSPACE_LOCATION
62
- -----------------------------
65
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63
66
64
67
This setting defines the workspace location of a given project.
65
68
The **workspace ** is the directory where **all of the project's files are stored **
@@ -74,7 +77,7 @@ See :ref:`project_workspace` for more details.
74
77
.. _scancodeio_settings_config_dir :
75
78
76
79
SCANCODEIO_CONFIG_DIR
77
- ---------------------
80
+ ^^^^^^^^^^^^^^^^^^^^^
78
81
79
82
The location of the :guilabel: `.scancode/ ` configuration directory within the project
80
83
codebase.
@@ -91,7 +94,7 @@ it to ScanCode.io. The expected location of the attribution template is::
91
94
.scancode/templates/attribution.html
92
95
93
96
SCANCODEIO_PROCESSES
94
- --------------------
97
+ ^^^^^^^^^^^^^^^^^^^^
95
98
96
99
By default, multiprocessing is enabled and configured to use an optimal number of CPUs
97
100
available on the machine. You can control the number of parallel processes available
@@ -114,7 +117,7 @@ To disable both multiprocessing and threading, use "-1"::
114
117
.. _scancodeio_settings_async :
115
118
116
119
SCANCODEIO_ASYNC
117
- ----------------
120
+ ^^^^^^^^^^^^^^^^
118
121
119
122
When enabled, pipeline runs are **executed asynchronously **, meaning that users can
120
123
continue using the app while the pipeline are run in the background.
@@ -139,7 +142,7 @@ synchronously in the web server process.
139
142
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
140
143
141
144
SCANCODEIO_TASK_TIMEOUT
142
- -----------------------
145
+ ^^^^^^^^^^^^^^^^^^^^^^^
143
146
144
147
Maximum time allowed for a pipeline to complete.
145
148
The pipeline run will be stopped and marked as failed if that limit is reached.
@@ -152,7 +155,7 @@ The value is a string with specify unit including hour, minute, second
152
155
Default: ``24h ``
153
156
154
157
SCANCODEIO_SCAN_FILE_TIMEOUT
155
- ----------------------------
158
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156
159
157
160
Maximum time allowed for a file to be analyzed when scanning a codebase.
158
161
@@ -165,7 +168,7 @@ Default: ``120`` (2 minutes)
165
168
.. _scancodeio_settings_pipelines_dirs :
166
169
167
170
SCANCODEIO_PIPELINES_DIRS
168
- -------------------------
171
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
169
172
170
173
This setting defines any additional locations that ScanCode.io will search in
171
174
for pipelines.
@@ -177,7 +180,7 @@ of additional pipelines directories::
177
180
.. _scancodeio_settings_policies_file :
178
181
179
182
SCANCODEIO_POLICIES_FILE
180
- ------------------------
183
+ ^^^^^^^^^^^^^^^^^^^^^^^^
181
184
182
185
This setting defines the location of the policies file, or ``policies.yml ``.
183
186
A valid policies file is required to enable compliance-related features.
@@ -208,15 +211,15 @@ A valid policies file is required to enable compliance-related features.
208
211
this feature.
209
212
210
213
SCANCODEIO_PAGINATE_BY
211
- ----------------------
214
+ ^^^^^^^^^^^^^^^^^^^^^^
212
215
213
216
The number of objects display per page for each object type can be customized with the
214
217
following setting::
215
218
216
219
SCANCODEIO_PAGINATE_BY=project=30,error=50,resource=100,package=100,dependency=100
217
220
218
221
SCANCODEIO_REST_API_PAGE_SIZE
219
- -----------------------------
222
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
220
223
221
224
A numeric value indicating the number of objects returned per page in the REST API::
222
225
@@ -228,7 +231,7 @@ Default: ``50``
228
231
Using a large page size may have an impact on performances.
229
232
230
233
SCANCODEIO_LOG_LEVEL
231
- --------------------
234
+ ^^^^^^^^^^^^^^^^^^^^
232
235
233
236
By default, only a minimum of logging messages is displayed in the console, mostly
234
237
to provide some progress about pipeline run execution.
@@ -254,7 +257,7 @@ The web server can be started in DEBUG mode with:
254
257
$ SCANCODEIO_LOG_LEVEL=DEBUG make run
255
258
256
259
TIME_ZONE
257
- ---------
260
+ ^^^^^^^^^
258
261
259
262
A string representing the time zone for the current ScanCode.io installation. By
260
263
default the ``UTC `` time zone is used::
@@ -265,30 +268,48 @@ default the ``UTC`` time zone is used::
265
268
You can view a detailed list of time zones `here.
266
269
<https://en.wikipedia.org/wiki/List_of_tz_database_time_zones> `_
267
270
271
+ .. _scancodeio_settings_external_services :
272
+
273
+ External services (integrations)
274
+ --------------------------------
275
+
268
276
.. _scancodeio_settings_purldb :
269
277
270
278
PURLDB
271
- ------
279
+ ^^^^^^
280
+
281
+ A public instance of **PurlDB ** is accessible at https://public.purldb.io/.
272
282
273
- Provide the URL and API key of your `PurlDB <https://github.com/nexB/purldb/ >`_
274
- instance.
283
+ Alternatively, you can deploy your own instance of PurlDB by
284
+ following the instructions provided in the documentation at
285
+ https://purldb.readthedocs.io/.
275
286
276
- ::
287
+ To configure your local environment, set the `` PURLDB_URL `` in your `` .env `` file ::
277
288
278
- PURLDB_URL=https://your-purldb-domain/
279
- PURLDB_API_KEY=apikeyexample
289
+ PURLDB_URL=https://public.purldb.io/
290
+
291
+ While using the public PurlDB instance, providing an API key is optional.
292
+ However, if authentication is enabled on your PurlDB instance, you can provide the
293
+ API key using ``PURLDB_API_KEY ``::
294
+
295
+ PURLDB_API_KEY=insert_your_api_key_here
280
296
281
297
.. _scancodeio_settings_vulnerablecode :
282
298
283
299
VULNERABLECODE
284
- --------------
300
+ ^^^^^^^^^^^^^^
285
301
286
- You can either run your own instance of
302
+ You have the option to either deploy your instance of
287
303
`VulnerableCode <https://github.com/nexB/vulnerablecode/ >`_
288
- or connect to the public one .
304
+ or connect to the ` public instance < https://public.vulnerablecode.io/ >`_ .
289
305
290
- Authentication is provided using an API key that you can obtain by registering at
291
- https://public.vulnerablecode.io/account/request_api_key/ ::
306
+ To configure your local environment, set the `` VULNERABLECODE_URL `` in your `` .env ``
307
+ file ::
292
308
293
309
VULNERABLECODE_URL=https://public.vulnerablecode.io/
294
- VULNERABLECODE_API_KEY=apikeyexample
310
+
311
+ When using the public VulnerableCode instance, providing an API key is optional.
312
+ However, if authentication is enabled on your VulnerableCode instance,
313
+ you can provide the API key using ``VULNERABLECODE_API_KEY ``::
314
+
315
+ VULNERABLECODE_API_KEY=insert_your_api_key_here
0 commit comments