feat(web03): Deploy the new annuaire
All checks were successful
build configuration / build_and_cache_geo01 (push) Successful in 1m13s
build configuration / build_and_cache_geo02 (push) Successful in 1m18s
build configuration / build_and_cache_storage01 (push) Successful in 1m29s
build configuration / build_and_cache_rescue01 (push) Successful in 1m32s
build configuration / build_and_cache_vault01 (push) Successful in 1m34s
build configuration / build_and_cache_compute01 (push) Successful in 1m40s
lint / check (push) Successful in 25s
build configuration / build_and_cache_web02 (push) Successful in 1m13s
build configuration / build_and_cache_bridge01 (push) Successful in 1m6s
build configuration / build_and_cache_web01 (push) Successful in 1m48s
build configuration / build_and_cache_web03 (push) Successful in 1m11s
All checks were successful
build configuration / build_and_cache_geo01 (push) Successful in 1m13s
build configuration / build_and_cache_geo02 (push) Successful in 1m18s
build configuration / build_and_cache_storage01 (push) Successful in 1m29s
build configuration / build_and_cache_rescue01 (push) Successful in 1m32s
build configuration / build_and_cache_vault01 (push) Successful in 1m34s
build configuration / build_and_cache_compute01 (push) Successful in 1m40s
lint / check (push) Successful in 25s
build configuration / build_and_cache_web02 (push) Successful in 1m13s
build configuration / build_and_cache_bridge01 (push) Successful in 1m6s
build configuration / build_and_cache_web01 (push) Successful in 1m48s
build configuration / build_and_cache_web03 (push) Successful in 1m11s
This commit is contained in:
parent
972b9554b7
commit
969f59fbc4
2 changed files with 56 additions and 1 deletions
52
machines/web03/django-apps/annuaire.nix
Normal file
52
machines/web03/django-apps/annuaire.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{ pkgs, sources, ... }:
|
||||
|
||||
let
|
||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
||||
in
|
||||
|
||||
{
|
||||
services.django-apps.sites.annuaire = {
|
||||
source = "https://git.dgnum.eu/DGNum/annuaire-eleves";
|
||||
branch = "main";
|
||||
domain = "annuaire-ens.webapps.dgnum.eu";
|
||||
|
||||
nginx = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
|
||||
webHookSecret = builtins.toFile "insecure-secret" "T5hNeDraMivRZLUkrekv&QeM";
|
||||
|
||||
python = pkgs.python3.override {
|
||||
packageOverrides = _: _: { inherit (nix-pkgs) authens loadcredential; };
|
||||
};
|
||||
|
||||
dependencies = ps: [
|
||||
ps.django
|
||||
ps.pillow
|
||||
ps.loadcredential
|
||||
ps.authens
|
||||
ps.python-dateutil
|
||||
];
|
||||
|
||||
credentials = {
|
||||
SECRET_KEY = builtins.toFile "insecure-key" "insecure-key";
|
||||
};
|
||||
|
||||
environment = {
|
||||
ANNUAIRE_ALLOWED_HOSTS = [ "annuaire-ens.webapps.dgnum.eu" ];
|
||||
ANNUAIRE_LDAP = {
|
||||
SPI = {
|
||||
PROTOCOL = "ldaps";
|
||||
URL = "ldap.spi.ens.fr";
|
||||
PORT = 636;
|
||||
};
|
||||
CRI = {
|
||||
PROTOCOL = "ldaps";
|
||||
URL = "annuaire.ens.fr";
|
||||
PORT = 636;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
imports = [ ./gestiojeux.nix ];
|
||||
imports = [
|
||||
./annuaire.nix
|
||||
./gestiojeux.nix
|
||||
];
|
||||
|
||||
services.django-apps = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue