2024-08-25 00:28:11 -05:00
|
|
|
{ config, ... }:
|
2024-08-07 18:17:21 -05:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
2024-08-25 00:28:11 -05:00
|
|
|
services.nginx.virtualHosts."lakewatch.orion-technologies.io" = {
|
2024-08-07 18:17:21 -05:00
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/".proxyPass = "http://${config.services.lakewatch-api.host}:${builtins.toString config.services.lakewatch-api.port}";
|
|
|
|
};
|
|
|
|
}
|