The Saga configuration can be use for the core library only or with the server, all the features available for the core library will work in the server, but the features for the server
Control the server's basic communication configuration
Manages the security configuration regarding encrypted communication and authentication
encryptionKeyFile ( type=string | optional ) - Path to the file holding the encryption key. Recommended over encryptionKey
We recommend the use of encryptionKeyFile over the encriptionKey directly in the configuration file. Never use both a the same time
Manages the export functionality
Defines the location of external libraries and classes
Here you can see a sample configuration (not functional)
{ "config": { "apiPort": 8080, "ipAddress": "0.0.0.0", "security": { "enable": false, "encryptionKey": "SDFW$%GW$S%S#", "encryptionKeyFile": "./bin/saga.ek", "users": [{ "username": "admin", "password": "password", "roles": "admin" }] }, "libraryJars": [ "./lib" ], "tagManager": { "resource": "saga-provider:saga_tags" }, "pipelineManager": { "resource": "saga-provider:saga_pipelines" }, "datasetFolder": "./datasets", "ssl": { "enable": false, "keyStore": "./bin/saga.jks", "keyStorePassword": "encrypted:NxepNROIgJ27pYpmKEw30llscPA8zCUpbQW676E7H8Nwo9DMABKQsIYF3fcSxQGG" }, "exportSettings" : { "maxSize" : 40, "batchSize" : 5000 }, "restHandlers": [], "models": [], "uiHandlers": [], "gpt3": { "key": "encrypted:7E7nI0+ofh//r1bFvTQCnY7DQlG6Kh4aA1TQlh44/NoxR0DDzHaeZdBXqYAguEXc" }, "providers": [ { "name": "filesystem-provider", "type": "FileSystem", "baseDir": "./config" }, { "name": "saga-provider", "type": "Elastic", "scheme": "http", "hostname": "localhost", "port": 9200, "timestamp": "updatedAt", "exclude": [ "updatedAt", "createdAt" ] } ], "solutions": [ { "display": "Saga", "elasticSearch": { "scheme": "http", "hostname": "localhost", "port": 9200, "hostnamesAndPorts": ["server1:9210", "server2:9220"], "indexName": "saga", "timeout": 30, "delay": 5, "retries": 3 } } ] } }