Skip to content

Instantly share code, notes, and snippets.

@bmorton
Created July 3, 2012 22:14
Show Gist options
  • Save bmorton/3043747 to your computer and use it in GitHub Desktop.
Save bmorton/3043747 to your computer and use it in GitHub Desktop.
patch nginx config for new service
--- yammer.dev 2012-07-03 15:08:47.777823104 -0700
+++ yammer.dev 2012-07-03 15:02:40.658173871 -0700
@@ -40,6 +40,10 @@
server localhost:7380;
}
+upstream mugshot {
+ server localhost:3133;
+}
+
# images and files on s3
upstream s3_amazonaws_com {
server s3.amazonaws.com:443;
@@ -205,6 +209,13 @@
proxy_hide_header X-Amz-Request-Id;
}
+ ## Mugshot service
+ location ~ ^/mugshot/(.*)$ {
+ proxy_set_header Host $http_host;
+ proxy_redirect off;
+ proxy_pass http://mugshot/$1;
+ }
+
## Uploads api
location ~ ^/(api/v1/uploaded_files/progress(\.\w+)?)$ {
proxy_set_header Host $http_host;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment