summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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}"; };
};
};