Go to file
Arkadiusz Wieczorek e83113bbde Merge pull request 'Add firefox bloating (przedplamienie FF)' (#34) from #29 into master
Reviewed-on: #34
2022-11-29 12:45:46 +01:00
@types/src Add firefox bloating 2022-07-24 14:39:50 +02:00
Docker Merge branch '#29' of git.internet-czas-dzialac.pl:icd/screenshot-service into #29 2022-11-20 13:09:37 +01:00
src Add firefox bloating 2022-07-24 14:39:50 +02:00
.eslintrc.js Switch to Typescript 2022-06-19 13:33:25 +02:00
.gitignore Generate thumbnails of screenshots 2022-07-15 11:46:17 +02:00
README.md Add amount of jobs ahead in the queue 2022-06-17 12:09:59 +02:00
config.json Implement container warmup and pooling 2022-06-17 09:37:27 +02:00
package-lock.json Add firefox bloating 2022-07-24 14:39:50 +02:00
package.json Switch to Typescript 2022-06-19 13:33:25 +02:00
run.sh Live preview 2022-04-24 20:04:45 +02:00
screenshot-service.service fix script 2022-07-08 10:53:25 +02:00
tsconfig.json Switch to Typescript 2022-06-19 13:33:25 +02:00

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.