public01: deploy snix.dev
Change-Id: Ia0a439dd1628299569503370c21a0bbf9552830e
This commit is contained in:
parent
91d8b86b39
commit
4c65a325a8
4 changed files with 37 additions and 3 deletions
18
ops/modules/www/snix.dev.nix
Normal file
18
ops/modules/www/snix.dev.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ depot, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./base.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
services.nginx.virtualHosts."snix.dev" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = depot.web.website;
|
||||
|
||||
locations."/rustdoc/".alias = "${depot.snix.rust-docs}/";
|
||||
locations."=/rustdoc".return = "302 https://snix.dev/rustdoc/tvix_eval/index.html";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue