infrastructure/machines/nixos/web03/django-apps/gestiobds.nix

52 lines
1 KiB
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
2025-01-11 19:05:48 +01:00
{ config, ... }:
{
services.django-apps.sites.gestiobds = {
source = "https://git.dgnum.eu/DGNum/gestioCOF";
branch = "django-apps";
domain = "gestiobds.webapps.dgnum.eu";
nginx = {
enableACME = true;
forceSSL = true;
};
webHookSecret = config.age.secrets."webhook-gestiobds_token".path;
2025-01-11 19:05:48 +01:00
overlays.nix-pkgs = [
# Required packages
"authens"
"django-bootstrap-form"
"django-cas-ng"
"loadcredential"
2025-01-11 19:05:48 +01:00
# Dependencies
"python-cas"
];
dependencies = ps: [
ps.authens
ps.django
ps.django-bootstrap-form
ps.django-autocomplete-light
ps.django-cas-ng
ps.django-widget-tweaks
ps.loadcredential
ps.pillow
];
application = {
module = "gestioasso";
settingsModule = "gestioasso.settings_bds";
};
credentials = {
SECRET_KEY = config.age.secrets."dj_gestiobds-secret_key_file".path;
};
};
}