infrastructure/machines/nixos/web03/django-apps/gestiojeux.nix
sinavir 91cd3c9c07
All checks were successful
Build all the nodes / ap01 (push) Successful in 1m8s
Build all the nodes / netcore02 (push) Successful in 27s
Build all the nodes / geo01 (push) Successful in 2m3s
Build all the nodes / build01 (push) Successful in 2m5s
Build all the nodes / hypervisor01 (push) Successful in 2m4s
Build all the nodes / rescue01 (push) Successful in 1m35s
Build all the nodes / tower01 (push) Successful in 1m42s
Build all the nodes / storage01 (push) Successful in 1m58s
Build all the nodes / vault01 (push) Successful in 2m1s
Build all the nodes / bridge01 (push) Successful in 4m8s
Build all the nodes / hypervisor03 (push) Successful in 4m18s
Build all the nodes / hypervisor02 (push) Successful in 4m21s
Run pre-commit on all files / pre-commit (push) Successful in 24s
Build all the nodes / geo02 (push) Successful in 4m47s
Build all the nodes / compute01 (push) Successful in 4m49s
Build the shell / build-shell (push) Successful in 43s
Build all the nodes / web01 (push) Successful in 2m6s
Build all the nodes / web02 (push) Successful in 2m2s
Build all the nodes / web03 (push) Successful in 1m58s
fix(gestiojeux): missing dependencies
2025-01-16 10:16:42 +01:00

79 lines
1.7 KiB
Nix

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{
pkgs,
sources,
config,
...
}:
let
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
in
{
services.django-apps.sites.gestiojeux = {
source = "https://git.dgnum.eu/DGNum/gestiojeux";
branch = "production";
domain = "gestiojeux.webapps.dgnum.eu";
nginx = {
enableACME = true;
forceSSL = true;
};
webHookSecret = config.age.secrets."webhook-gestiojeux_token".path;
application = {
type = "wsgi";
module = "gestiojeux";
};
python = pkgs.python3.override {
packageOverrides = _: _: {
inherit (nix-pkgs)
django-autoslug
django-cas-ng
loadcredential
markdown-icons
;
};
};
django = ps: ps.django_4;
dependencies = ps: [
ps.django-autoslug
ps.loadcredential
ps.django-cas-ng
ps.django-cleanup
ps.django-haystack
ps.django-markdownx
ps.django-tables2
ps.pillow
ps.psycopg2
ps.whoosh
ps.markdown-icons
# Django haystack is drunk
ps.setuptools
];
staticDirectory = "source/public/static";
mediaDirectory = "source/public/media";
credentials = {
SECRET_KEY = config.age.secrets."dj_gestiojeux-secret_key_file".path;
};
environment = {
GESTIOJEUX_ALLOWED_HOSTS = [ "gestiojeux.webapps.dgnum.eu" ];
GESTIOJEUX_EMAIL_HOST_USER = "web-services@infra.dgnum.eu";
GESTIOJEUX_DEFAULT_FROM_EMAIL = "Kadenios <web-services@infra.dgnum.eu>";
GESTIOJEUX_SERVER_EMAIL = "webapps@infra.dgnum.eu";
GESTIOJEUX_DB_NAME = "dj-gestiojeux";
GESTIOJEUX_DB_USER = "dj-gestiojeux";
};
};
}