forked from DGNum/infrastructure
feat(web01): Deploy simiweb as a static website
This commit is contained in:
parent
ad5e23e766
commit
dbbe739e7c
2 changed files with 24 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
||||||
{ lib, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
sources,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) recursiveUpdate;
|
inherit (lib) recursiveUpdate;
|
||||||
|
@ -17,5 +22,11 @@ in
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts = recursiveUpdate (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";
|
"eleves.dgnum.eu".locations."/".tryFiles = "$uri $uri/index.html /fr/$uri /en/$uri /fr/index.html";
|
||||||
|
|
||||||
|
"simi.normalesup.eu" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
root = (import sources.simiweb { inherit pkgs; }).site;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,6 +130,17 @@
|
||||||
"url": "https://github.com/cachix/pre-commit-hooks.nix/archive/7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf.tar.gz",
|
"url": "https://github.com/cachix/pre-commit-hooks.nix/archive/7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf.tar.gz",
|
||||||
"hash": "0gj03fzsqcybzr4shj7x62l0xc34w20zhphd2jg7sd2rxaw42x23"
|
"hash": "0gj03fzsqcybzr4shj7x62l0xc34w20zhphd2jg7sd2rxaw42x23"
|
||||||
},
|
},
|
||||||
|
"simiweb": {
|
||||||
|
"type": "Git",
|
||||||
|
"repository": {
|
||||||
|
"type": "Git",
|
||||||
|
"url": "https://git.dgnum.eu/jmarquet/simiweb"
|
||||||
|
},
|
||||||
|
"branch": "master",
|
||||||
|
"revision": "060d7f8c77355a968cfb76d22c2a60bc7100d7fb",
|
||||||
|
"url": null,
|
||||||
|
"hash": "0j4v5v3i269mpypm5h0n7w7mi2fnimyh3v2dd5d63f9s3444s0yy"
|
||||||
|
},
|
||||||
"wp4nix": {
|
"wp4nix": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -144,4 +155,4 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 3
|
"version": 3
|
||||||
}
|
}
|
Loading…
Reference in a new issue