-
Notifications
You must be signed in to change notification settings - Fork 10
Configuration
BernardoScantamburlo edited this page Nov 10, 2024
·
2 revisions
You can find all configuration items here: https://github.com/uvasoftware/scanii-lambda/blob/master/lib/config.js
These configuration items can be over written via environment variables, here's a description of what they do:
- API_KEY - the API key to use when making API calls to scanii.com
- API_SECRET - the API key secret to use when making API calls to scanii.com
- ACTION_TAG_OBJECT - set it to "true" or "false" to enable and disable tagging the S3 object with the results of the content analysis
- ACTION_DELETE_OBJECT - set it to "true" or "false" to enable and disable the deletion of the s3 object when a finding is identified
- CALLBACK_URL - the callback used when submitting content for processing, this is normally automatically configured for you during setup
- MAX_ATTEMPTS - the maximum number of API call attempts that should be made if a failure is encountered. Setting this to 1 effectively disable retries
- MAX_ATTEMPT_DELAY_MSEC - the maximum amount of time we should wait between tries. This is a theoretical maximum since we actually multiply this by a random number between 0-1 to get the actual wait.
- SIGNED_URL_DURATION - the amount of time signed URLs will be valid for