add landing page
This commit is contained in:
parent
e9ea354f51
commit
8086efe6ec
3 changed files with 47 additions and 4 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue