feat(web03/gestiocof): Add passthrough for some clubs
All checks were successful
Check meta / check_meta (pull_request) Successful in 16s
Check meta / check_dns (pull_request) Successful in 16s
Check workflows / check_workflows (pull_request) Successful in 17s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Build all the nodes / ap01 (pull_request) Successful in 30s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m55s
Build all the nodes / bridge01 (pull_request) Successful in 1m55s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m8s
Build all the nodes / geo02 (pull_request) Successful in 2m22s
Build all the nodes / tower01 (pull_request) Successful in 2m6s
Build the shell / build-shell (pull_request) Successful in 23s
Build all the nodes / rescue01 (pull_request) Successful in 2m23s
Run pre-commit on all files / pre-commit (pull_request) Successful in 23s
Build all the nodes / hypervisor03 (pull_request) Successful in 2m46s
Build all the nodes / build01 (pull_request) Successful in 2m48s
Build all the nodes / geo01 (pull_request) Successful in 2m48s
Build all the nodes / storage01 (pull_request) Successful in 2m41s
Build all the nodes / vault01 (pull_request) Successful in 2m39s
Build all the nodes / compute01 (pull_request) Successful in 3m18s
Build all the nodes / web01 (pull_request) Successful in 2m56s
Build all the nodes / web02 (pull_request) Successful in 1m43s
Build all the nodes / web03 (pull_request) Successful in 1m54s
Build all the nodes / netcore02 (push) Successful in 23s
Build all the nodes / ap01 (push) Successful in 1m9s
Build all the nodes / hypervisor01 (push) Successful in 1m28s
Build the shell / build-shell (push) Successful in 32s
Build all the nodes / hypervisor03 (push) Successful in 1m44s
Build all the nodes / geo01 (push) Successful in 1m46s
Build all the nodes / web02 (push) Successful in 1m45s
Build all the nodes / build01 (push) Successful in 1m51s
Build all the nodes / bridge01 (push) Successful in 1m53s
Build all the nodes / hypervisor02 (push) Successful in 1m57s
Build all the nodes / geo02 (push) Successful in 2m0s
Run pre-commit on all files / pre-commit (push) Successful in 30s
Build all the nodes / rescue01 (push) Successful in 2m10s
Build all the nodes / tower01 (push) Successful in 2m14s
Build all the nodes / compute01 (push) Successful in 2m19s
Build all the nodes / storage01 (push) Successful in 2m19s
Build all the nodes / web03 (push) Successful in 1m57s
Build all the nodes / vault01 (push) Successful in 2m20s
Build all the nodes / web01 (push) Successful in 2m55s

This commit is contained in:
Tom Hubrecht 2025-01-17 09:18:56 +01:00
parent 383667f5f9
commit 02084b130f
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -2,7 +2,11 @@
# #
# SPDX-License-Identifier: EUPL-1.2 # SPDX-License-Identifier: EUPL-1.2
{ config, ... }: { config, lib, ... }:
let
inherit (lib) listToAttrs nameValuePair;
in
{ {
services.django-apps.sites.gestiocof = { services.django-apps.sites.gestiocof = {
@ -14,10 +18,25 @@
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/ws/" = { locations =
proxyPass = "http://unix:/run/django-apps/gestiocof/socket"; {
proxyWebsockets = true; "/ws/" = {
}; proxyPass = "http://unix:/run/django-apps/gestiocof/socket";
proxyWebsockets = true;
};
}
// (listToAttrs (
builtins.map (folder: nameValuePair "~ ^/${folder}/" { root = "/users/guests/cof/www/"; }) [
"arcanoid"
"cirque"
"pompom"
"trouveres"
]
));
extraConfig = ''
rewrite ^/$ /news;
'';
}; };
webHookSecret = config.age.secrets."webhook-gestiocof_token".path; webHookSecret = config.age.secrets."webhook-gestiocof_token".path;