Skip to content

ismd/screenshotgun-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshotgun server

Use this application as a backend for Screenshotgun.

Build and run

npm i
npm run build
npm run start

The app requires environment variables to be set at runtime.

Docker

Image at Docker Hub

Pull

docker pull ismd/screenshotgun-api

Run

docker run -p 80:80 \
  -e WEBSITE=<url> \
  -e S3_ENDPOINT=<s3_endpoint> \
  -e S3_BUCKET=<s3_bucket> \
  -e AWS_ACCESS_KEY_ID=<aws_access_key> \
  -e AWS_SECRET_ACCESS_KEY=<aws_secret_access_key> \
  ismd/screenshotgun-api

See below about environment variables.

Environment variables

To launch the server you shoud set these variables:

  • PORT optional

Port on which to run server. Default 80.

  • UPLOAD_DESTINATION

The only available value is aws.

  • WEBSITE

This url will be used for link generation. The website should be available on this url.

  • S3_ENDPOINT

Defines S3 endpoint.

  • S3_BUCKET

Defines S3 bucket.

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Read more about AWS keys

About

Node.js Screenshotgun server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published