Monitoring SSL certificates.
The monitored parameters:
- The certificate expires in less than 2 weeks
- The certificate expires in less than 1 week
- The certificate has expired
- SSL error
- Correct Certificate
Format:
- API:
json
- URL:
api/v1/path
method | path | action |
---|---|---|
GET | /status | state of the domains |
POST | /domain | track the domain |
-
GET /status:
- params
- filters
- name: String (domain)
- order_column
- created_at: Datetime (default)
- order_type: String
- asc
- desc (default)
- page: Integer
- per_page: Integer
- filters
- response: Array
- name: String (domain)
- status: String
- params
-
POST /domain
- params
- name: String (domain)
- response: Object
- name: String (domain)
- status: String
- params
Install necessary dependencies:
Postgresql
-v 11 (or higher)Redis
with access by password
Prepare the environment variables:
cp .env.example .env
And initialize variables in file .env
:
- DATABASE_USERNAME
- DATABASE_PASSWORD
- SIDEKIQ_USERNAME
- SIDEKIQ_PASSWORD
- REDIS_PASSWORD
- REDIS_HOST
The last preparatory steps:
bundle install # install missing gems
rake db:create # create the database
rake db:migrate # prepare the database
rspec spec/ # run the tests
Server starts on http://localhost:6000/
To run the server with background jobs:
gem install foreman
foreman start
To run the server without background jobs:
bundle exec puma
Correct Certificate is released under the MIT License.