mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
fix search-nix-api
This commit is contained in:
@@ -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}/";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user