infrastructure/machines/nixos/web03/django-apps/gestiobds.nix
Tom Hubrecht 80ede4b1f6
All checks were successful
Build all the nodes / netcore02 (push) Successful in 21s
Build the shell / build-shell (push) Successful in 24s
Build all the nodes / netaccess01 (push) Successful in 28s
Build all the nodes / netcore01 (push) Successful in 28s
Build all the nodes / ap01 (push) Successful in 33s
Run pre-commit on all files / pre-commit (push) Successful in 25s
Build all the nodes / build01 (push) Successful in 1m41s
Build all the nodes / geo01 (push) Successful in 1m46s
Build all the nodes / storage01 (push) Successful in 1m52s
Build all the nodes / hypervisor01 (push) Successful in 2m7s
Build all the nodes / geo02 (push) Successful in 2m14s
Build all the nodes / hypervisor03 (push) Successful in 2m23s
Build all the nodes / bridge01 (push) Successful in 2m38s
Build all the nodes / tower01 (push) Successful in 2m38s
Build all the nodes / rescue01 (push) Successful in 2m43s
Build all the nodes / web03 (push) Successful in 2m42s
Build all the nodes / vault01 (push) Successful in 2m42s
Build all the nodes / hypervisor02 (push) Successful in 2m43s
Build all the nodes / web02 (push) Successful in 2m49s
Build all the nodes / web01 (push) Successful in 3m13s
Build all the nodes / compute01 (push) Successful in 3m20s
feat(web03): Do the migration
2025-02-24 15:33:42 +01:00

53 lines
1.2 KiB
Nix

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ config, ... }:
{
services.django-apps.sites.gestiobds = {
source = "https://git.dgnum.eu/DGNum/gestioCOF";
branch = "bds-prod";
domain = "gestion.bds.ens.fr";
nginx = {
enableACME = true;
forceSSL = true;
};
webHookSecret = config.age.secrets."webhook-gestiobds_token".path;
overlays.nix-pkgs = [
# Required packages
"authens"
"django-bootstrap-form"
"django-cas-ng"
"loadcredential"
# 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;
SYMPA_PASSWORD = config.age.secrets."dj_gestiobds-sympa_password_file".path;
SYMPA_USERNAME = config.age.secrets."dj_gestiobds-sympa_username_file".path;
};
};
}