infrastructure/machines/nixos/web01/crabfit/default.nix

37 lines
801 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
2024-12-15 18:16:17 +01:00
{ config, pkgs, ... }:
{
services.crabfit = {
enable = true;
api.host = "api.meet.dgnum.eu";
2024-12-15 18:16:17 +01:00
frontend = {
host = "meet.dgnum.eu";
package = pkgs.crabfit-frontend.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
./01-privacy.patch
./05-dgnum.patch
./06-download.patch
./07-colormap.patch
./08-heatmap.patch
];
});
};
};
2024-02-21 22:55:10 +01:00
dgn-backups.postgresDatabases = [ "crabfit" ];
2024-06-06 11:39:20 +02:00
dgn-web.simpleProxies = {
crabfit-api = {
inherit (config.services.crabfit.api) host port;
};
crabfit-frontend = {
inherit (config.services.crabfit.frontend) host port;
2024-06-06 11:39:20 +02:00
};
};
}