diff options
author | Profpatsch <mail@profpatsch.de> | 2017-07-08 22:08:05 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2017-07-08 22:08:05 +0200 |
commit | 62f3868c6a8436f62b70154eff1721cf9138dbe6 (patch) | |
tree | 9f39c14bd349ec08a1a65e0ed6d55fd1520dcaf5 /machines/profpatsch/haku.nix | |
parent | 581b4d23f0a7d0dd1850c0bf369add8299440cce (diff) |
machines/haku: remove pub subdomain again
Apparently `enableACME` doesn’t generate certificates for the right subdomains if they are on the same machine in different virtual hosts.
Diffstat (limited to 'machines/profpatsch/haku.nix')
-rw-r--r-- | machines/profpatsch/haku.nix | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/machines/profpatsch/haku.nix b/machines/profpatsch/haku.nix index a5c1c66b..901beb44 100644 --- a/machines/profpatsch/haku.nix +++ b/machines/profpatsch/haku.nix @@ -70,17 +70,12 @@ in virtualHosts."haku.profpatsch.de" = { forceSSL = true; enableACME = true; - locations."/".root = pkgs.writeTextDir "index.html" ''hello world''; - serverAliases = [ "lojbanistan.de" ]; - }; - virtualHosts."pub.profpatsch.de" = { - forceSSL = false; - enableACME = true; - locations."/" = { + locations."/pub/" = { proxyPass = "http://localhost:${toString warpspeedPort}/"; }; + locations."/".root = pkgs.writeTextDir "index.html" ''hello world''; + serverAliases = [ "lojbanistan.de" ]; }; - }; services.mlmmj = { |