Prerequisites
Before installing the API, ensure that the following components are already installed and operational on the target system.Installation
Before starting the installation, ensure you have received a compressed file which contains the following:- Scripts for Installation
- Binary API
- Binary Engine (Optional)
Create a Dedicated User
Set up a system user for running the SCANOSS GO-API:Obtain the API Source Code
Download the latest release for your architecture (AMD64/ARM64) from the SCANOSS GO-API releases or use the following script:Build the API Binary
Navigate to the source folder and build the binary:Set Up the Environment and Install
Run the setup script provided in the package:Verify the Service
Check that the API is running correctly:Configuration & Tuning
The behavior of the SCANOSS GO-API can be customised by modifying the configuration file located at:Default Configuration
Configuration Parameters
Application Settings (App)
- App.Name: Display name for the API on startup
- App.Port: Port the service will bind to
- App.Addr: Hostname for binding the port (leave blank to allow remote connections)
- App.Debug: Enable or disable debug mode
- App.Trace: Enable or disable trace logging
- App.Mode: Logging mode (
prodordev)
Logging Settings (Logging)
- Logging.DynamicLogging: Enable/disable dynamic log level changes at runtime
- Logging.DynamicPort: Host and port for dynamic log control
- Logging.ConfigFile: Optional ZAP logging configuration file
Scanning Settings (Scanning)
- Scanning.WfpLoc: Directory for temporary WFP files (defaults to system temp)
- Scanning.ScanBinary: Name or absolute path of the SCANOSS engine binary
- Scanning.ScanDebug: Enable/disable debug mode for scan operations
- Scanning.ScanFlags: Default flags passed to the scan engine
- Scanning.ScanTimeout: Timeout (seconds) for scan commands
- Scanning.WfpGrouping: Number of WFP requests grouped per worker thread
- Scanning.Workers: Number of worker threads per scan (tune based on CPU cores and expected load)
- Scanning.TmpFileDelete: Enable/disable deletion of temporary WFP files after processing
- Scanning.KeepFailedWfps: Enable/disable retention of failed WFP files
TLS Settings (Tls)
- Tls.CertFile: Path to TLS certificate file
- Tls.KeyFile: Path to private TLS key file