feat(web03): Deploy django-wiki on wiki.webapps.dgnum.eu
All checks were successful
Check meta / check_meta (push) Successful in 18s
Check meta / check_dns (push) Successful in 18s
build configuration / build_and_cache_geo01 (push) Successful in 1m20s
build configuration / build_and_cache_geo02 (push) Successful in 1m5s
build configuration / build_and_cache_rescue01 (push) Successful in 1m25s
build configuration / build_and_cache_storage01 (push) Successful in 1m30s
build configuration / build_and_cache_vault01 (push) Successful in 1m24s
build configuration / build_and_cache_compute01 (push) Successful in 1m48s
lint / check (push) Successful in 22s
build configuration / build_and_cache_bridge01 (push) Successful in 1m8s
build configuration / build_and_cache_web02 (push) Successful in 1m18s
build configuration / build_and_cache_web01 (push) Successful in 1m52s
build configuration / build_and_cache_web03 (push) Successful in 24m20s
All checks were successful
Check meta / check_meta (push) Successful in 18s
Check meta / check_dns (push) Successful in 18s
build configuration / build_and_cache_geo01 (push) Successful in 1m20s
build configuration / build_and_cache_geo02 (push) Successful in 1m5s
build configuration / build_and_cache_rescue01 (push) Successful in 1m25s
build configuration / build_and_cache_storage01 (push) Successful in 1m30s
build configuration / build_and_cache_vault01 (push) Successful in 1m24s
build configuration / build_and_cache_compute01 (push) Successful in 1m48s
lint / check (push) Successful in 22s
build configuration / build_and_cache_bridge01 (push) Successful in 1m8s
build configuration / build_and_cache_web02 (push) Successful in 1m18s
build configuration / build_and_cache_web01 (push) Successful in 1m52s
build configuration / build_and_cache_web03 (push) Successful in 24m20s
This commit is contained in:
parent
2b858bbae4
commit
2bb03126cf
3 changed files with 44 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./annuaire.nix
|
./annuaire.nix
|
||||||
./gestiojeux.nix
|
./gestiojeux.nix
|
||||||
|
./wikiens.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.django-apps = {
|
services.django-apps = {
|
||||||
|
|
40
machines/web03/django-apps/wikiens.nix
Normal file
40
machines/web03/django-apps/wikiens.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{ pkgs, sources, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
services.django-apps.sites.wikiens = {
|
||||||
|
source = "https://git.dgnum.eu/DGNum/wiki-eleves";
|
||||||
|
branch = "main";
|
||||||
|
domain = "wiki.webapps.dgnum.eu";
|
||||||
|
|
||||||
|
nginx = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
webHookSecret = builtins.toFile "insecure-secret" "T5hNeDraMivRZLUkrekv&QeM";
|
||||||
|
|
||||||
|
python = pkgs.python3.override {
|
||||||
|
packageOverrides = _: _: { inherit (nix-pkgs) django-allauth-ens django-wiki loadcredential; };
|
||||||
|
};
|
||||||
|
|
||||||
|
dependencies = ps: [
|
||||||
|
ps.django
|
||||||
|
ps.django-allauth-ens
|
||||||
|
ps.django-wiki
|
||||||
|
ps.loadcredential
|
||||||
|
ps.tinycss2
|
||||||
|
];
|
||||||
|
|
||||||
|
credentials = {
|
||||||
|
SECRET_KEY = builtins.toFile "insecure-key" "insecure-key";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
WIKIENS_ALLOWED_HOSTS = [ "wiki.webapps.dgnum.eu" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -226,9 +226,9 @@
|
||||||
"url": "https://git.hubrecht.ovh/hubrecht/nix-pkgs"
|
"url": "https://git.hubrecht.ovh/hubrecht/nix-pkgs"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"revision": "0e80d4dcdd54a75556c0784de55dc139ad4fe797",
|
"revision": "6f56463c0034d4162dabb98ee8e70d6c43214ac0",
|
||||||
"url": null,
|
"url": null,
|
||||||
"hash": "1hlb0cczxq0jrzw4lhmkibnb8skcar0rmny594aqgyikknwzx2qf"
|
"hash": "0dqm2n88f0yl63wacizwpjrcv51arz5z31nhwbjcbyjxrwiwxamq"
|
||||||
},
|
},
|
||||||
"nixos-24.05": {
|
"nixos-24.05": {
|
||||||
"type": "Channel",
|
"type": "Channel",
|
||||||
|
@ -308,4 +308,4 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 3
|
"version": 3
|
||||||
}
|
}
|
Loading…
Reference in a new issue