diff options
-rw-r--r-- | custom/ymir-nginx.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index 861b0720..7aaa0464 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix | |||
@@ -16,6 +16,12 @@ let | |||
16 | uwsgi_param SERVER_PORT $server_port; | 16 | uwsgi_param SERVER_PORT $server_port; |
17 | uwsgi_param SERVER_NAME $server_name; | 17 | uwsgi_param SERVER_NAME $server_name; |
18 | ''; | 18 | ''; |
19 | |||
20 | favicon = builtins.toFile "favicon" '' | ||
21 | location /favicon.ico { | ||
22 | root /srv/www/praseodym.org; | ||
23 | } | ||
24 | ''; | ||
19 | in { | 25 | in { |
20 | services.nginx = { | 26 | services.nginx = { |
21 | enable = true; | 27 | enable = true; |
@@ -101,6 +107,14 @@ in { | |||
101 | uwsgi_modifier1 9; | 107 | uwsgi_modifier1 9; |
102 | } | 108 | } |
103 | } | 109 | } |
110 | |||
111 | server { | ||
112 | listen *:80; | ||
113 | listen [::]:80; | ||
114 | server_name _; | ||
115 | |||
116 | root /srv/www/praseodym.org; | ||
117 | } | ||
104 | ''; | 118 | ''; |
105 | }; | 119 | }; |
106 | } | 120 | } |