dots/hosts/luna/modules/services/lakewatch.nix
Price Hiller 51788a4041
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 46s
feat(host/luna): add lakewatch api and scraper
2024-08-07 18:17:21 -05:00

23 lines
567 B
Nix

{ config, fqdn, ... }:
{
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.${fqdn}" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://${config.services.lakewatch-api.host}:${builtins.toString config.services.lakewatch-api.port}";
};
}