Skip to content

Commit

Permalink
fixup serve csv as text/csv
Browse files Browse the repository at this point in the history
  • Loading branch information
norm committed Aug 1, 2021
1 parent c0912cc commit 9f53fe5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nginx/prod/static.conf.template
@@ -1,3 +1,7 @@
types {
text/csv csv;
}

server {
listen 8080;
server_name ~^([a-z][a-z0-9-]+)\.hasworn\.com$ ;
Expand All @@ -14,7 +18,8 @@ server {
server_name ~^([a-z][a-z0-9-]+)\.hasworn\.com$ ;
root /baked/$1;

location / {
try_files $uri/index.html $uri.html =404;
location = /index.csv {}
location / {
try_files $uri.html $uri/index.html =404;
}
}

0 comments on commit 9f53fe5

Please sign in to comment.