diff options
author | Ben Sima <ben@bsima.me> | 2022-03-30 12:24:05 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-03-30 12:24:05 -0400 |
commit | 6ab89907a07e0b40759778dd29ebbdfd5dcb910f (patch) | |
tree | 451119e096b7a510ab5398c59e34926fcd06f60d /Biz/Nixpert.nix | |
parent | d63c6191128a3cdaa1784083a48547c79b3ab98d (diff) |
Move to nixpert.chat domain name
I'm also just using the que.run stylesheet for now. Eventually I should make
this a base stylesheet, instead of nesting it under Biz/Que, but that can come
later.
Diffstat (limited to 'Biz/Nixpert.nix')
-rw-r--r-- | Biz/Nixpert.nix | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/Biz/Nixpert.nix b/Biz/Nixpert.nix index 2eae9d6..51c6e66 100644 --- a/Biz/Nixpert.nix +++ b/Biz/Nixpert.nix @@ -8,7 +8,10 @@ let ${pkgs.pandoc}/bin/pandoc \ --standalone \ -f commonmark_x \ - -t html ${./Chat.md} \ + --include-in-header ${./Que/Style.css} \ + --include-in-header ${./Nixpert/ChatWidget.html} \ + -t html \ + ${./Nixpert.md} \ > $out/index.html ''; ports = import ../Cloud/Ports.nix; @@ -119,11 +122,17 @@ in { ''; }; - services.nginx.virtualHosts."simatime.com".locations."/" = { - root = "${salespage}"; - extraConfig = '' - add_header Access-Control-Allow-Origin "*"; - ''; + services.nginx.virtualHosts."simatime.com".locations."/".return = "301 https://nixpert.chat"; + + services.nginx.virtualHosts."nixpert.chat" = { + forceSSL = true; + enableACME = true; + locations."/" = { + root = "${salespage}"; + extraConfig = '' + add_header Access-Control-Allow-Origin "*"; + ''; + }; }; services.nginx.virtualHosts."simatime.com".locations."/xmpp-websocket" = { |