Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dalf/cryptcheck-backend
https://github.com/dalf/cryptcheck-backend
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dalf/cryptcheck-backend
- Owner: dalf
- License: agpl-3.0
- Created: 2020-01-15T13:05:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-22T17:47:14.000Z (over 4 years ago)
- Last Synced: 2024-07-14T12:38:59.879Z (4 months ago)
- Language: Ruby
- Size: 17.6 KB
- Stars: 19
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - dalf/cryptcheck-backend - (others)
README
Web server to run [cryptcheck](https://github.com/aeris/cryptcheck), without scheduling, database, cache.
Provide one API similar to the one cryptcheck.fr:
* ```/https/.json```
* ```/https/:.json```Result:
* If there is no error, a similar JSON structure is returned.
```json
{"service":"https",
"host":"",
"pending":false,
"result": ,
"created_at": "",
"updated_at": "",
"args": 443}
```
* If one argument is invalid, the HTTP status code is 400, a json
```json
{"status":400,"error":"Invalid port","error_message":" is not a number"}
```
* If cryptcheck triggers an exception, the HTTP status code is 503:
```json
{"status":503,"error":"Address not available","error_message":"Address not available - connect(2) for []:443"}
```
* If the host don't have an IPv6 connectivity:
```json
{"service":"https","host":"","pending":false,"result":[{"hostname":"","port":443,"error":"Network unreachable - connect(2) for []:443"}],"created_at":"","updated_at":"","args":443}
```# Build docker image
```sh
make docker-build
```# Run docker image
```sh
make docker-run
```Or
```sh
docker run --rm -p 7000:7000 dalf/cryptcheck-backend:latest -o 0.0.0.0
```