summaryrefslogtreecommitdiff
path: root/Biz/Nixpert.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Nixpert.nix')
-rw-r--r--Biz/Nixpert.nix21
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" = {