Wayback Archiver - Software as a Service (SAAS)
Built with:
- Ruby v2.4
- PostgreSQL > 9.3
- Redis > 3
Sidekiq UI @ /sidekiq
.
Required: url
.
Optional: strategy
, notification_email
.
Also supports notification_email
param.
Payload:
{
"archivation": {
"url": "http://example.com",
"strategy": "crawl",
"notification_email": "test@example.com"
}
}
Response success:
{
"id": 32,
"url": "http://example.com",
"strategy": "crawl",
"status": "queued",
"notification_email": "test@example.com",
"created_at": "2017-08-05T23:56:51.905Z",
"updated_at": "2017-08-05T23:56:51.905Z"
}
Response error:
{
"status": 422,
"errors": [
"Url to soon for URL resubmission please try again at 2017-08-06 23:41:17 UTC (~24 hours)"
]
}
Response success:
{
"id": 32,
"url": "http://example.com",
"strategy": "crawl",
"status": "queued",
"notification_email": "test@example.com",
"created_at": "2017-08-05T23:56:51.905Z",
"updated_at": "2017-08-05T23:56:51.905Z"
}
Response error: 404
Env. variables
ADMIN_EMAIL
- Admin emailADMIN_PASSWORD
- Admin passwordWAYBACK_ARCHIVER_DEFAULT_MAX_LIMIT
- WaybackArchiver Max URLs to be sent by defaultWAYBACK_ARCHIVER_CONCURRENCY
- WaybackArchiver default concurrencySENDGRID_USERNAME
- Sendgrid usernameSENDGRID_PASSWORD
- Sendgrid passwordDEFAULT_FROM_EMAIL
- Default mailer from email addressREDIS_URL
- Redis URL
$ heroku create <your_name>
$ git push heroku master
$ heroku run rails db:migrate
$ heroku addons:create heroku-redis:hobby-dev
$ heroku addons:create sendgrid:starter