forked from DGNum/infrastructure
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
services.django-apps.sites.ernestophone = {
|
|
source = "https://git.dgnum.eu/DGNum/ernestophone.ens.fr";
|
|
branch = "update";
|
|
domain = "ernestophone.ens.fr";
|
|
|
|
nginx = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations = {
|
|
"/media/trombonoscope/".root = "/run/django-apps/ernestophone/";
|
|
};
|
|
};
|
|
|
|
serveMedia = false;
|
|
|
|
webHookSecret = config.age.secrets."webhook-ernestophone_token".path;
|
|
|
|
overlays.nix-pkgs = [
|
|
"django-avatar"
|
|
"django-cas-ng"
|
|
"django-solo"
|
|
"loadcredential"
|
|
];
|
|
|
|
dependencies = ps: [
|
|
ps.django
|
|
ps.django-avatar
|
|
ps.django-colorful
|
|
ps.gunicorn
|
|
ps.pillow
|
|
ps.loadcredential
|
|
];
|
|
|
|
application.module = "Ernestophone";
|
|
|
|
credentials = {
|
|
SECRET_KEY = config.age.secrets."dj_ernestophone-secret_key_file".path;
|
|
ACCOUNT_CREATION_PASS = config.age.secrets."dj_ernestophone-password_file".path;
|
|
};
|
|
};
|
|
}
|