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

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