feat(dj-interludes): Add a real secret

This commit is contained in:
Tom Hubrecht 2024-11-18 13:02:54 +01:00
parent f61bd85d63
commit ded867d274
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
3 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@ let
in in
{ {
services.webhook.extraArgs = [ "-debug" ];
services.django-apps.sites.interludes = { services.django-apps.sites.interludes = {
source = "https://git.eleves.ens.fr/dlesbre/site-interludes"; source = "https://git.eleves.ens.fr/dlesbre/site-interludes";
branch = "master"; branch = "master";
@ -22,7 +23,7 @@ in
serverAliases = [ "interludes.webapps.dgnum.eu" ]; serverAliases = [ "interludes.webapps.dgnum.eu" ];
}; };
webHookSecret = builtins.toFile "insecure-secret" "T5hNeDraMivRZLUkrekv&QeM"; webHookSecret = config.age.secrets."webhook-interludes_token".path;
application = { application = {
type = "wsgi"; type = "wsgi";

View file

@ -2,4 +2,5 @@
# List of secrets for web03 # List of secrets for web03
"dj_interludes-email_host_password_file" "dj_interludes-email_host_password_file"
"dj_interludes-secret_key_file" "dj_interludes-secret_key_file"
"webhook-interludes_token"
] ]

Binary file not shown.