From 12b4d595d6ed20e2c8944d3cfb14d3f5aaba1ea7 Mon Sep 17 00:00:00 2001 From: clerie Date: Tue, 5 Jan 2021 20:27:05 +0100 Subject: [PATCH] Enable local http server on web-2 --- hosts/web-2/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index 04a1be3..0da1eff 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -34,6 +34,18 @@ recommendedProxySettings = true; recommendedTlsSettings = true; + virtualHosts."web-2.net.clerie.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "404"; + }; + locations."/public/" = { + alias = "/var/www/public/"; + }; + }; + }; + networking.firewall.allowedTCPPorts = [ 80 443 ]; services.borgbackup.jobs = {