2023-03-14 20:27:30 +01:00
|
|
|
{ depot, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./base.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
services.nginx.virtualHosts."tvix.dev" = {
|
|
|
|
serverName = "tvix.dev";
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
root = depot.tvix.website;
|
|
|
|
};
|
|
|
|
|
2024-02-23 10:41:04 +01:00
|
|
|
services.nginx.virtualHosts."bolt.tvix.dev" = {
|
|
|
|
root = depot.web.tvixbolt;
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# old domain, serve redirect
|
|
|
|
services.nginx.virtualHosts."tvixbolt.tvl.su" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
extraConfig = "return 301 https://bolt.tvix.dev$request_uri;";
|
|
|
|
};
|
|
|
|
|
2023-03-14 20:27:30 +01:00
|
|
|
services.nginx.virtualHosts."docs.tvix.dev" = {
|
|
|
|
serverName = "docs.tvix.dev";
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
location = / {
|
|
|
|
# until we have a better default page here
|
|
|
|
return 301 https://docs.tvix.dev/rust/tvix_eval/index.html;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /rust/ {
|
|
|
|
alias ${depot.tvix.rust-docs}/;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|