nix-config/modules/nginx/default.nix
2025-02-07 17:20:47 +01:00

17 lines
345 B
Nix

{ config, lib, ... }: let
inherit (config) conf;
inherit (lib) mkIf;
in mkIf conf.nginx.enable {
services.nginx = {
enable = true;
"*.twoneis.site" = {
serverName = ".twoneis.site";
forceSSL = false;
locations = {
"/" = {
return = "200 \"nonexistent faggot\"";
};
};
};
};
}