From 945ae8563b6b2cd73f21e7da9dec63ab913ef6d5 Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Tue, 10 Mar 2020 18:06:47 +0100 Subject: [PATCH] Serve (missing) favicon.ico with nginx --- module.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/module.nix b/module.nix index 7411c6e..da5de1a 100644 --- a/module.nix +++ b/module.nix @@ -110,6 +110,7 @@ in ''; locations."/static/".alias = "${static}/"; locations."/media/".alias = "${cfg.stateDir}/media/"; + locations."= /favicon.ico".return = "404"; locations."/" = { proxyPass = "http://unix:${cfg.socketPath}"; extraConfig = ''