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 = {