Tom Hubrecht
a6aac2b0b4
All checks were successful
build configuration / build_and_cache_geo01 (push) Successful in 1m7s
build configuration / build_and_cache_geo02 (push) Successful in 1m15s
build configuration / build_and_cache_storage01 (push) Successful in 1m35s
build configuration / build_and_cache_rescue01 (push) Successful in 1m35s
build configuration / build_and_cache_vault01 (push) Successful in 1m35s
build configuration / build_and_cache_compute01 (push) Successful in 1m41s
lint / check (push) Successful in 24s
build configuration / build_and_cache_web02 (push) Successful in 1m11s
build configuration / build_and_cache_bridge01 (push) Successful in 1m2s
build configuration / build_and_cache_web01 (push) Successful in 1m43s
build configuration / build_and_cache_web03 (push) Successful in 1m32s
44 lines
1,013 B
Nix
44 lines
1,013 B
Nix
{ pkgs, sources, ... }:
|
|
|
|
let
|
|
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
in
|
|
|
|
{
|
|
services.django-apps.sites.bocal = {
|
|
source = "https://git.dgnum.eu/DGNum/www-bocal";
|
|
branch = "main";
|
|
domain = "bocal.webapps.dgnum.eu";
|
|
|
|
nginx = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
};
|
|
|
|
webHookSecret = builtins.toFile "insecure-secret" "T5hNeDraMivRZLUkrekv&QeM";
|
|
|
|
python = pkgs.python3.override {
|
|
packageOverrides = _: _: { inherit (nix-pkgs) django-cas-ng django-solo loadcredential; };
|
|
};
|
|
|
|
dependencies = ps: [
|
|
ps.django
|
|
ps.django-cas-ng
|
|
ps.django-markdownx
|
|
ps.django-solo
|
|
ps.markdown
|
|
ps.pillow
|
|
ps.loadcredential
|
|
];
|
|
|
|
credentials = {
|
|
SECRET_KEY = builtins.toFile "insecure-key" "insecure-key";
|
|
};
|
|
|
|
environment = {
|
|
DJANGO_SETTINGS_MODULE = "app.settings";
|
|
BOCAL_ALLOWED_HOSTS = [ "bocal.webapps.dgnum.eu" ];
|
|
BOCAL_RHOSTS_PATH = "/var/lib/django-apps/bocal/.rhosts";
|
|
};
|
|
};
|
|
}
|