Skip to content

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:

  1. API_KEY - the API key to use when making API calls to scanii.com
  2. API_SECRET - the API key secret to use when making API calls to scanii.com
  3. ACTION_TAG_OBJECT - set it to "true" or "false" to enable and disable tagging the S3 object with the results of the content analysis
  4. ACTION_DELETE_OBJECT - set it to "true" or "false" to enable and disable the deletion of the s3 object when a finding is identified
  5. CALLBACK_URL - the callback used when submitting content for processing, this is normally automatically configured for you during setup
  6. 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
  7. 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.
  8. SIGNED_URL_DURATION - the amount of time signed URLs will be valid for
Clone this wiki locally