summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-08-07 17:41:20 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-08-07 17:41:20 +0200
commit2916403f08606fac246679eabf7b954dc036cf16 (patch)
tree1228d8abbe7b1a44659a1f7b73507c5d56268ccb
parent655cbee4e003e7df799cb538e8d5f296fa0930fb (diff)
return 444 when trying to connect directly through the IP address
-rw-r--r--config/networking.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/networking.nix b/config/networking.nix
index fa7780f..ba49ea9 100644
--- a/config/networking.nix
+++ b/config/networking.nix
@@ -22,6 +22,14 @@
services.nginx = {
enable = true;
virtualHosts = {
+ # return 444 when trying to connect directly through the IP address
+ "_" = {
+ default = true;
+ extraConfig = ''
+ return 444;
+ '';
+ };
+
"quentin.aristote.fr" = { root = "${pkgs.personal.academic-webpage}"; };
};
};