add landing page

This commit is contained in:
Grisha Shipunov 2025-02-02 20:50:39 +01:00
parent e9ea354f51
commit 8086efe6ec
3 changed files with 47 additions and 4 deletions

View file

@ -1,4 +1,7 @@
{ ... }:
{ inputs, ... }:
let
website = inputs.website.packages."x86_64-linux".default;
in
{
imports = [
./auth.nix
@ -49,12 +52,21 @@
add_header X-Content-Type-Options nosniff;
'';
# default vhost
virtualHosts."oxapentane.com" = {
forceSSL = true;
enableACME = true;
# default = true;
default = true;
locations."/" = {
return = "503";
root = "${website}";
index = "index.html";
};
};
virtualHosts."www.oxapentane.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
return = "302 https://oxapentane.com";
};
};
};