From 442b6104b74a82cb446ce371e7d9bb6cdbb0fe31 Mon Sep 17 00:00:00 2001
From: Andrew Buss <abuss@ucsd.edu>
Date: Wed, 29 Apr 2015 13:41:31 -0700
Subject: [PATCH] added static dir to nginx conf

---
 nginxconf/flashy.cards | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/nginxconf/flashy.cards b/nginxconf/flashy.cards
index 300c08b..8b10d47 100644
--- a/nginxconf/flashy.cards
+++ b/nginxconf/flashy.cards
@@ -9,7 +9,10 @@ server {
         root /srv/flashy.cards/;
     }
 
-    location ~ /(api|static|admin|api-auth)/ {
+    location /static/ {
+        alias /srv/static/;
+    }
+    location ~ /(api|admin|api-auth)/ {
         proxy_pass http://backend_production;
         proxy_redirect      http://backend_production $scheme://flashy.cards;
         proxy_set_header        Host $host;
-- 
1.9.1