Code Monkey home page Code Monkey logo

guanyu-docker's Introduction

Guanyu

RESTful API wrapper for Sohpos Antivirus for Linux Free on top of maxipowa/sophos-av.

Install

docker pull clifflu/guanyu

Starting Guanyu

docker run -d -p 3000:3000 clifflu/guanyu

Using Guanyu

curl -X POST -F "file=@/tmp/virus.exe" http://localhost:3000/scan/file"

Environment Options

API Token

  • Env name: API_TOKEN
  • Format: characters separated by comma (,)
  • When enabled, POST requests must have request header Api-Token set with matching values to be authenticated.

Cache

AWS DynamoDB

  • Env name: CACHE__DDB__HOST

  • Format: table name

  • Enables cache on AWS DynamoDB

  • Env name: CACHE__DDB__DISABLED,

  • Type: boolean (0/1 preferred)

  • Disable DynamoDB even if CACHE__DDB__TABLE is set.

Redis

  • Env name: CACHE__REDIS__HOST

  • Format: IP or domain name to Redis server

  • Enables cache on redis

  • Env name: CACHE__REDIS__DISABLED,

  • Type: boolean (0/1 preferred)

  • Disable redis even if CACHE__REDIS__HOST is set.

docker run -d --name guanyu-storage redis redis-server --save 30 5  # Start redis
docker run -d -p 3000:3000 --link guanyu-storage --env CACHE__REDIS__HOST=guanyu-storage clifflu/guanyu

Drunk

  • Env name: DRUNK
  • Type: boolean (0/1 preferred)
  • Skip scanning and pretend all files to be clean, primarily for debugging.

File Max Size

  • Env name: FILE__MAX_SIZE
  • Type: number
  • Default: 33554432 (32mb)
  • Maximal size in bytes for file uploads and remote files.

Log Level

  • Env name: LOG_LEVEL
  • Possible values: ['debug', 'verbose', 'info', 'warn']
  • Default: info

Process per Core

  • Env name: PROC_PER_CORE,
  • Type: number
  • Default: 2
  • Number of concurrent scans allowed per CPU core

License

MIT

Note

Guanyu is open-sourced under permission as a side project from 104 Corp.

guanyu-docker's People

Contributors

clifflu avatar

Watchers

Valentine Nwachukwu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.