summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/mime.types1
-rw-r--r--ymir.nix8
2 files changed, 5 insertions, 4 deletions
diff --git a/custom/mime.types b/custom/mime.types
index 8a218b22..d723a21b 100644
--- a/custom/mime.types
+++ b/custom/mime.types
@@ -8,6 +8,7 @@ types {
8 application/x-javascript js; 8 application/x-javascript js;
9 application/atom+xml atom; 9 application/atom+xml atom;
10 application/rss+xml rss; 10 application/rss+xml rss;
11 application/jose+json json;
11 12
12 text/mathml mml; 13 text/mathml mml;
13 text/plain txt; 14 text/plain txt;
diff --git a/ymir.nix b/ymir.nix
index 2df8f902..7702d3e0 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -168,7 +168,7 @@ in {
168 services.nginx = { 168 services.nginx = {
169 enable = true; 169 enable = true;
170 httpConfig = '' 170 httpConfig = ''
171 include mime.types; 171 include /etc/nginx/mime.types;
172 default_type application/octet-stream; 172 default_type application/octet-stream;
173 173
174 log_format main 174 log_format main
@@ -202,13 +202,13 @@ in {
202 202
203 ignore_invalid_headers on; 203 ignore_invalid_headers on;
204 204
205 include hosts/*.conf; 205 include /etc/nginx/hosts/*.conf;
206 ''; 206 '';
207 }; 207 };
208 environment.etc."etc/nginx/mime.types" = { 208 environment.etc."nginx/mime.types" = {
209 source = ./custom/mime.types; 209 source = ./custom/mime.types;
210 }; 210 };
211 environment.etc."etc/nginx/hosts/dirty-haskell.conf" = { 211 environment.etc."nginx/hosts/dirty-haskell.conf" = {
212 text = '' 212 text = ''
213 server { 213 server {
214 listen *:80; 214 listen *:80;