Commit 442b6104b74a82cb446ce371e7d9bb6cdbb0fe31
1 parent
010e8cd4f8
Exists in
master
added static dir to nginx conf
Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff
nginxconf/flashy.cards
View file @
442b610
... | ... | @@ -9,7 +9,10 @@ |
9 | 9 | root /srv/flashy.cards/; |
10 | 10 | } |
11 | 11 | |
12 | - location ~ /(api|static|admin|api-auth)/ { | |
12 | + location /static/ { | |
13 | + alias /srv/static/; | |
14 | + } | |
15 | + location ~ /(api|admin|api-auth)/ { | |
13 | 16 | proxy_pass http://backend_production; |
14 | 17 | proxy_redirect http://backend_production $scheme://flashy.cards; |
15 | 18 | proxy_set_header Host $host; |