You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Arkadiusz Wieczorek e83113bbde Merge pull request 'Add firefox bloating (przedplamienie FF)' (#34) from #29 into master
Reviewed-on: #34
10 months ago
@types/src Add firefox bloating 1 year ago
Docker Merge branch '#29' of git.internet-czas-dzialac.pl:icd/screenshot-service into #29 10 months ago
src Add firefox bloating 1 year ago
.eslintrc.js Switch to Typescript 1 year ago
.gitignore Generate thumbnails of screenshots 1 year ago
README.md Add amount of jobs ahead in the queue 1 year ago
config.json Implement container warmup and pooling 1 year ago
package-lock.json Add firefox bloating 1 year ago
package.json Switch to Typescript 1 year ago
run.sh Live preview 1 year ago
screenshot-service.service fix script 1 year ago
tsconfig.json Switch to Typescript 1 year ago

README.md

Screenshot service

Dependencies

  • Xvfb
  • fluxbox
  • firefox-beta

Building

docker image build -t headless-fox Docker

Running the server

npm start

Visit localhost:3000 to see the test form

To set up a systemd daemon that starts with the server, use:

npm run install-daemon

Testing the API

with httpie:

http POST localhost:3000/api/requests url==pearson.com 'domains[]==youtube.com' 'domains[]==google.com'

It returns a 303 response that redirects to a URL you can poll to see the status of the screenshot request.