dots/hosts/luna/modules/services/lakewatch.nix
Price Hiller c27bdf76cd
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 43s
refactor(nix): cleanup toplevel flake
2024-08-25 00:28:28 -05:00

23 lines
575 B
Nix

{ config, ... }:
{
services.lakewatch-api = {
enable = true;
db = {
createService = true;
passwordFile = config.age.secrets.lakewatch-db-pass.path;
};
};
services.lakewatch-scraper = {
enable = true;
db = {
passwordFile = config.age.secrets.lakewatch-db-pass.path;
};
};
services.nginx.virtualHosts."lakewatch.orion-technologies.io" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://${config.services.lakewatch-api.host}:${builtins.toString config.services.lakewatch-api.port}";
};
}