From 6ab89907a07e0b40759778dd29ebbdfd5dcb910f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 30 Mar 2022 12:24:05 -0400 Subject: 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. --- Biz/Nixpert.nix | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'Biz/Nixpert.nix') 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" = { -- cgit v1.2.3