-
Notifications
You must be signed in to change notification settings - Fork 15
Deploy instructions
Kunwar Aditya Raghuwanshi edited this page Jul 28, 2015
·
1 revision
-
Ubuntu note: requires
sudo apt-get install ca-certificates curl gcc git libmagickwand-dev imagemagick
-
Fotomat would be behind an nginx proxy to S3. The original request comes through with sizing parameters, which we pass to fotomat. Fotomat uses the sizing information and strips it from the url and the re-requests it. This causes it go through the non-sizing path that just proxies to S3. Sample nginx conf:
server { listen 80; server_name assets.mydomain.com; #[...] location /s3/mybucket/ { proxy_pass http://mybucket.s3.amazonaws.com/; #[...] } location ~ =[cs][0-9]*(?:x[0-9]*)?$ { proxy_pass http://fotomat.mydomain.com; proxy_set_header Host $host; #[...] } }