Skip to content

Commit

Permalink
kindergarten: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Jun 10, 2024
1 parent a2c0a9e commit 6f3b557
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 20 deletions.
80 changes: 70 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
url = "github:tlm-solutions/kindergarten";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};

Expand Down
10 changes: 1 addition & 9 deletions modules/data-hoarder/kindergarten.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,8 @@
enableACME = true;
forceSSL = true;
locations."~ ^/(de|en)" = {
root =
if (config.deployment-TLMS.domain == "tlm.solutions") then
"${pkgs.kindergarten}"
else
"${pkgs.kindergarten-staging}";
# index = "index.html";
root = "${pkgs.kindergarten.override {inherit (config.deployment-TLMS ) domain; }}";
tryFiles = "$uri /$1/index.html =404";
extraConfig = ''
more_set_headers "Access-Control-Allow-Credentials: true";
'';
};
locations."~ ^/(?!en|de)" = {
extraConfig = ''
Expand Down

0 comments on commit 6f3b557

Please sign in to comment.