about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-07-08 21:07:59 +0200
committerProfpatsch <mail@profpatsch.de>2017-07-08 21:07:59 +0200
commit581b4d23f0a7d0dd1850c0bf369add8299440cce (patch)
tree490fd9af208d11186116bb99522371dfd86cb379 /machines/profpatsch
parent40ffce35bc9f84b17964ce39d63163f545e3fd74 (diff)
machines/haku: add a pub subdomain
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/haku.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/machines/profpatsch/haku.nix b/machines/profpatsch/haku.nix
index 901beb44..a5c1c66b 100644
--- a/machines/profpatsch/haku.nix
+++ b/machines/profpatsch/haku.nix
@@ -70,12 +70,17 @@ in
       virtualHosts."haku.profpatsch.de" = {
         forceSSL = true;
         enableACME = true;
-        locations."/pub/" = {
-          proxyPass = "http://localhost:${toString warpspeedPort}/";
-        };
         locations."/".root = pkgs.writeTextDir "index.html" ''hello world'';
         serverAliases = [ "lojbanistan.de" ];
       };
+      virtualHosts."pub.profpatsch.de" = {
+        forceSSL = false;
+        enableACME = true;
+        locations."/" = {
+          proxyPass = "http://localhost:${toString warpspeedPort}/";
+        };
+      };
+
     };
 
     services.mlmmj = {