fix search-nix-api

This commit is contained in:
Hadi
2025-04-05 14:04:06 +02:00
parent bc52572df5
commit 0398d077e5
4 changed files with 109 additions and 90 deletions

View File

@@ -0,0 +1,16 @@
{ config, ... }:
let domain = "search-nixos-api.hadi.diy";
in {
services = {
search-nixos-api = { enable = true; };
nginx.virtualHosts."${domain}" = {
useACMEHost = "hadi.diy";
forceSSL = true;
locations."/" = {
proxyPass =
"http://127.0.0.1:${toString config.services.search-nixos-api.port}/";
};
};
};
}