# `_utils.mkNginxFile` `{filename ? "index.html", content, status ? 200} -> {alias, tryFiles}` Helper function to generate an attrset compatible with a nginx vhost `locations` attribute that serves a single file. ## Example ### Without filename ```nix services.nginx.virtualHosts."example.com".locations."/" = _utils.mkNginxFile { content = '' We've been trying to reach you about your car's Extended Warranty. ''; }; ``` ### With filename ```nix services.nginx.virtualHosts."filename.example.com".locations."/filename" = _utils.mkNginxFile { content = "the filename doesn't really matter, but it's there to help you figure out where your things are"; filename = "random.txt"; } ```