feat(static): Refactor www-eleves config
All checks were successful
build configuration / build_vault01 (push) Successful in 51s
build configuration / build_storage01 (push) Successful in 52s
build configuration / build_web02 (push) Successful in 1m0s
build configuration / build_web01 (push) Successful in 1m9s
build configuration / build_compute01 (push) Successful in 1m14s
ds-fr update / npins_update (push) Successful in 1m50s
npins update / npins_update (push) Successful in 1m8s
All checks were successful
build configuration / build_vault01 (push) Successful in 51s
build configuration / build_storage01 (push) Successful in 52s
build configuration / build_web02 (push) Successful in 1m0s
build configuration / build_web01 (push) Successful in 1m9s
build configuration / build_compute01 (push) Successful in 1m14s
ds-fr update / npins_update (push) Successful in 1m50s
npins update / npins_update (push) Successful in 1m8s
This commit is contained in:
parent
4359447596
commit
95fd21c378
5 changed files with 23 additions and 34 deletions
|
@ -1,13 +1,21 @@
|
|||
_:
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) recursiveUpdate;
|
||||
websites = import ./npins;
|
||||
|
||||
mkVhost = name:
|
||||
{ outPath, ... }: {
|
||||
mkVhost =
|
||||
name:
|
||||
{ outPath, ... }:
|
||||
{
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "${outPath}/www";
|
||||
};
|
||||
in
|
||||
|
||||
in { services.nginx.virtualHosts = builtins.mapAttrs mkVhost websites; }
|
||||
{
|
||||
services.nginx.virtualHosts = recursiveUpdate (builtins.mapAttrs mkVhost websites) {
|
||||
"eleves.dgnum.eu".locations."/".tryFiles = "$uri $uri/index.html /fr/$uri /en/$uri /fr/index.html";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,6 +11,17 @@
|
|||
"url": null,
|
||||
"hash": "0x1iyq52awazxyhsx07qv5slgwym0k3gkhbnfflqcn2jmwkir0yr"
|
||||
},
|
||||
"eleves.dgnum.eu": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "Git",
|
||||
"url": "https://git.dgnum.eu/DGNum/eleves.dgnum.eu.git"
|
||||
},
|
||||
"branch": "main",
|
||||
"revision": "d28526a8cdbd1cce13071b50064fd8d4deadb1f5",
|
||||
"url": null,
|
||||
"hash": "0cdrywjwvh6sg8rlsm3ap2prksbizvdjbsmqdpdmnjs06ccxnl8c"
|
||||
},
|
||||
"interq.ens.fr": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue