Skip to content

Commit

Permalink
Add nginx directive to set content type for example files.
Browse files Browse the repository at this point in the history
  • Loading branch information
morganekmefjord committed Dec 19, 2024
1 parent 9345273 commit d5afd55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ptp/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ http {
location /static/ {
alias /app/static/;
}
location /static/examples/ {
alias /app/static/examples/;
types {
text/csv csv;
}
}
location /media/ {
alias /app/ext_storage/media/;
types {
Expand Down
2 changes: 1 addition & 1 deletion ptp/static/examples/smiles_example.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SMILES, Name
O=Cc1ccc(O)c(OC)c1,Vanillin
O=Cc1ccc(O)c(OC)c1,Vanillin

0 comments on commit d5afd55

Please sign in to comment.