add website

This commit is contained in:
Vivian 2024-06-13 22:50:01 +02:00
parent 1cbb509689
commit 6c3cc4df70
2 changed files with 17 additions and 10 deletions

View file

@ -13,6 +13,11 @@ let
add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON data}';
'';
website = builtins.fetchGit {
url = "https://git.0x76.dev/v/0x76.dev.git";
rev = "ecb7811560650381f41ee537b9c8493e004a108b";
};
in {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
@ -70,10 +75,12 @@ in {
enableACME = true;
forceSSL = true;
locations."/".extraConfig = ''
add_header Content-Type 'text/html; charset=UTF-8';
return 200 '<h1>Under Construction</h1>';
'';
root = "${website}";
# locations."/".extraConfig = ''
# add_header Content-Type 'text/html; charset=UTF-8';
# return 200 '<h1>Under Construction</h1>';
# '';
};
"blog.xirion.net" = {