All checks were successful
Build all the nodes / netcore02 (push) Successful in 21s
Build the shell / build-shell (push) Successful in 24s
Build all the nodes / netaccess01 (push) Successful in 28s
Build all the nodes / netcore01 (push) Successful in 28s
Build all the nodes / ap01 (push) Successful in 33s
Run pre-commit on all files / pre-commit (push) Successful in 25s
Build all the nodes / build01 (push) Successful in 1m41s
Build all the nodes / geo01 (push) Successful in 1m46s
Build all the nodes / storage01 (push) Successful in 1m52s
Build all the nodes / hypervisor01 (push) Successful in 2m7s
Build all the nodes / geo02 (push) Successful in 2m14s
Build all the nodes / hypervisor03 (push) Successful in 2m23s
Build all the nodes / bridge01 (push) Successful in 2m38s
Build all the nodes / tower01 (push) Successful in 2m38s
Build all the nodes / rescue01 (push) Successful in 2m43s
Build all the nodes / web03 (push) Successful in 2m42s
Build all the nodes / vault01 (push) Successful in 2m42s
Build all the nodes / hypervisor02 (push) Successful in 2m43s
Build all the nodes / web02 (push) Successful in 2m49s
Build all the nodes / web01 (push) Successful in 3m13s
Build all the nodes / compute01 (push) Successful in 3m20s
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
services.django-apps.sites.bocal = {
|
|
source = "https://git.dgnum.eu/DGNum/www-bocal";
|
|
branch = "main";
|
|
domain = "bocal.cof.ens.fr";
|
|
|
|
nginx = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
locations = {
|
|
"/www/".root = "/users/guests/bocal/";
|
|
"= /preparation.pdf".root = "/users/guests/bocal/www/";
|
|
"~ /bocal_www/".extraConfig = ''
|
|
rewrite ^/bocal_www(/.*)$ /www$1 last;
|
|
try_files $uri $args;
|
|
'';
|
|
};
|
|
};
|
|
|
|
webHookSecret = config.age.secrets."webhook-bocal_token".path;
|
|
|
|
overlays.nix-pkgs = [
|
|
"django-cas-ng"
|
|
"django-solo"
|
|
"loadcredential"
|
|
|
|
# Dependencies
|
|
"python-cas"
|
|
];
|
|
|
|
dependencies = ps: [
|
|
ps.django
|
|
ps.django-cas-ng
|
|
ps.django-markdownx
|
|
ps.django-solo
|
|
ps.markdown
|
|
ps.pillow
|
|
ps.loadcredential
|
|
];
|
|
|
|
credentials = {
|
|
SECRET_KEY = config.age.secrets."dj_bocal-secret_key_file".path;
|
|
};
|
|
|
|
environment = {
|
|
BOCAL_RHOSTS_PATH = "/users/guests/bocal/.rhosts";
|
|
};
|
|
};
|
|
}
|