infrastructure/machines/nixos/web03/django-apps/gestiojeux.nix
Tom Hubrecht c01d4ba9c3
All checks were successful
Build all the nodes / netaccess01 (push) Successful in 20s
Build all the nodes / ap01 (push) Successful in 32s
Build all the nodes / netcore02 (push) Successful in 36s
Build all the nodes / netcore01 (push) Successful in 37s
Build all the nodes / storage01 (push) Successful in 1m33s
Build all the nodes / tower01 (push) Successful in 1m35s
Build all the nodes / bridge01 (push) Successful in 1m42s
Build all the nodes / build01 (push) Successful in 1m40s
Build all the nodes / hypervisor01 (push) Successful in 1m44s
Build all the nodes / hypervisor03 (push) Successful in 1m51s
Build all the nodes / geo02 (push) Successful in 1m54s
Build all the nodes / hypervisor02 (push) Successful in 1m56s
Build all the nodes / geo01 (push) Successful in 1m58s
Build all the nodes / rescue01 (push) Successful in 2m3s
Build all the nodes / compute01 (push) Successful in 2m7s
Build the shell / build-shell (push) Successful in 33s
Run pre-commit on all files / pre-commit (push) Successful in 36s
Build all the nodes / web02 (push) Successful in 1m39s
Build all the nodes / web01 (push) Successful in 2m4s
Build all the nodes / vault01 (push) Successful in 2m24s
Build all the nodes / web03 (push) Successful in 1m54s
feat(web03/gestiojeux): Update settigns
2025-03-07 23:03:55 +01:00

65 lines
1.4 KiB
Nix

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ config, ... }:
{
services.django-apps.sites.gestiojeux = {
source = "https://git.dgnum.eu/DGNum/gestiojeux";
branch = "production";
domain = "jeux.cof.ens.fr";
nginx = {
enableACME = true;
forceSSL = true;
};
webHookSecret = config.age.secrets."webhook-gestiojeux_token".path;
application = {
type = "wsgi";
module = "gestiojeux";
};
overlays.nix-pkgs = [
"django-autoslug"
"django-cas-ng"
"loadcredential"
"markdown-icons"
# Dependencies
"python-cas"
];
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;
EMAIL_HOST = config.age.secrets."dj_gestiojeux-email_host_file".path;
};
environment = {
GESTIOJEUX_SERVER_EMAIL = "gestiojeux@jeux.cof.ens.fr";
};
};
}