snix/ops/modules/www/snix.dev.nix
Florian Klink afc5c152b8 fix(ops/modules/www): fix rustdoc redirect
Change-Id: Icd78c2209c20aee0931622bfb914e9dc5978d23d
2025-03-17 21:50:54 +00:00

18 lines
363 B
Nix

{ 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/snix_eval/index.html";
};
};
}