aboutsummaryrefslogtreecommitdiff
path: root/nix/web.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-09-27 22:07:56 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-09-27 22:08:31 -0700
commite037e164c5c45ff33525d0c8575e8d9e0315ac7b (patch)
treed350808fdb003a196b5c31b6bd2ad5c77345e0aa /nix/web.nix
parent4072628986ccb63a8107e58a6aa35dc6056ded4b (diff)
move nix modules
Diffstat (limited to 'nix/web.nix')
-rw-r--r--nix/web.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nix/web.nix b/nix/web.nix
new file mode 100644
index 0000000..b34f8d8
--- /dev/null
+++ b/nix/web.nix
@@ -0,0 +1,8 @@
+{...}: {
+ # dont serve git.kassouni.net traffic to other subdomains
+ services.nginx.virtualHosts."_" = {
+ default = true;
+ rejectSSL = true;
+ locations."/".return = 444;
+ };
+}