nixcfg/systems/x86_64-linux/sgx/nginx.nix
Harald Hoyer 7f802aaca6 feat(nix): refactor Searx configuration into separate module
- Moved Searx-related settings from `default.nix` and `nginx.nix` to a dedicated `searx.nix` module for improved modularity and maintainability.
- Updated references and ACME certificate configuration to align with the new structure.
- Simplifies management of Searx service and its associated secrets.
2026-02-06 13:27:29 +01:00

36 lines
879 B
Nix

{
config,
...
}:
{
services.nginx.virtualHosts = {
"openwebui.hoyer.world" = {
enableACME = false;
useACMEHost = "internal.hoyer.world";
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.open-webui.port}";
proxyWebsockets = true;
};
};
"syncthing.hoyer.world" = {
enableACME = false;
useACMEHost = "internal.hoyer.world";
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8384";
recommendedProxySettings = true;
};
};
"home.hoyer.world" = {
enableACME = false;
useACMEHost = "internal.hoyer.world";
forceSSL = true;
locations."/" = {
proxyPass = "http://192.168.178.49:8123";
recommendedProxySettings = true;
proxyWebsockets = true;
};
};
};
}