Giter Site home page Giter Site logo

cryptcheck-backend's Introduction

Web server to run cryptcheck, without scheduling, database, cache.

Provide one API similar to the one cryptcheck.fr:

  • /https/<host>.json
  • /https/<host>:<port>.json

Result:

  • If there is no error, a similar JSON structure is returned.
    {"service":"https",
     "host":"<host>",
     "pending":false,
     "result": <cryptcheck result>,
     "created_at": "<date time>",
     "updated_at": "<date time>",
     "args": 443}
  • If one argument is invalid, the HTTP status code is 400, a json
    {"status":400,"error":"Invalid port","error_message":"<port> is not a number"}
  • If cryptcheck triggers an exception, the HTTP status code is 503:
    {"status":503,"error":"Address not available","error_message":"Address not available - connect(2) for [<ip>]:443"}
  • If the host don't have an IPv6 connectivity:
    {"service":"https","host":"<host>","pending":false,"result":[{"hostname":"<host>","port":443,"error":"Network unreachable - connect(2) for [<ipv6>]:443"}],"created_at":"<timestamp>","updated_at":"<timestamp>","args":443}

Build docker image

make docker-build

Run docker image

make docker-run

Or

docker run --rm -p 7000:7000 dalf/cryptcheck-backend:latest -o 0.0.0.0

cryptcheck-backend's People

Contributors

dalf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cryptcheck-backend's Issues

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.