Tom Hubrecht
13abd5400b
All checks were successful
Build all the nodes / geo02 (push) Successful in 59s
Build all the nodes / bridge01 (push) Successful in 1m5s
Build all the nodes / geo01 (push) Successful in 1m4s
Build all the nodes / storage01 (push) Successful in 1m6s
Build all the nodes / rescue01 (push) Successful in 1m10s
Build all the nodes / compute01 (push) Successful in 1m22s
Run pre-commit on all files / check (push) Successful in 24s
Build all the nodes / vault01 (push) Successful in 1m9s
Build all the nodes / web02 (push) Successful in 1m8s
Build all the nodes / web03 (push) Successful in 1m16s
Build all the nodes / web01 (push) Successful in 1m36s
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{ 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
|
|
django-allauth-ens
|
|
django-wiki
|
|
loadcredential
|
|
;
|
|
};
|
|
};
|
|
|
|
dependencies =
|
|
ps:
|
|
[
|
|
ps.django
|
|
ps.django-allauth-ens
|
|
ps.django-wiki
|
|
ps.loadcredential
|
|
ps.tinycss2
|
|
]
|
|
++ ps.django-allauth.optional-dependencies.socialaccount;
|
|
|
|
credentials = {
|
|
SECRET_KEY = builtins.toFile "insecure-key" "insecure-key";
|
|
};
|
|
|
|
environment = {
|
|
WIKIENS_ALLOWED_HOSTS = [ "wiki.webapps.dgnum.eu" ];
|
|
};
|
|
};
|
|
}
|