xyk2 / thumbor-configuration-scripts

Setup scripts, installation scripts, and config files for thumbor running on GCE.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thumbor setup and configuration files

  • Google Cloud Compute managed instances set up behind a load balancer behind CDN
  • Individual instances have multiple thumbor processes balanced with nginx
  • Make sure to restart thumbor on configuration changes when testing locally

Todo

  • Set up terraform and/or packer to provision infrastructure and VMs
  • Automatic deployment and rolling update from master branch

Special configurations in /etc/thumbor.config

  • Set up detectors
DETECTORS = [
    'thumbor.detectors.face_detector',
    'thumbor.detectors.feature_detector',
]
  • Whitelist allowed domains and buckets
  • Set up security keys
  • Enable and set max-age headers for CDN caching
  • Enable respect orientation EXIF RESPECT_ORIENTATION = True for mobile images

Deployment

  • Upload to gs://startup-scripts-and-packages bucket
  • Rolling restart application servers, startup script will automatically grab new configuration from bucket

About

Setup scripts, installation scripts, and config files for thumbor running on GCE.


Languages

Language:Shell 85.8%Language:Python 14.2%