blob: d6d6d4f7b89b89ff19d2547ba4412a5c538852d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ config, pkgs, ... }:
let
salespage = pkgs.runCommand "salespage" {} ''
mkdir -p $out
${pkgs.pandoc}/bin/pandoc \
--standalone \
-f commonmark_x \
--include-in-header ${./Que/Style.css} \
--include-in-header ${./Nixpert/ChatWidget.html} \
-t html \
${./Nixpert.md} \
> $out/index.html
'';
in {
services.nginx.virtualHosts."nixpert.chat" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = "${salespage}";
extraConfig = ''
add_header Access-Control-Allow-Origin "*";
'';
};
};
}
|