forked from DGNum/infrastructure
feat(compute01): Enable wordpress
This commit is contained in:
parent
bb677cf509
commit
5b22e8e88d
3 changed files with 24 additions and 1 deletions
|
@ -11,7 +11,7 @@ lib.extra.mkConfig {
|
||||||
"metis"
|
"metis"
|
||||||
"linkal"
|
"linkal"
|
||||||
"plausible"
|
"plausible"
|
||||||
# "wordpress"
|
"wordpress"
|
||||||
];
|
];
|
||||||
|
|
||||||
root = ./.;
|
root = ./.;
|
||||||
|
|
11
machines/web01/wordpress/default.nix
Normal file
11
machines/web01/wordpress/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./lavoixduntexte.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
services.wordpress = {
|
||||||
|
webserver = "nginx";
|
||||||
|
};
|
||||||
|
}
|
12
machines/web01/wordpress/lavoixduntexte.nix
Normal file
12
machines/web01/wordpress/lavoixduntexte.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
_:
|
||||||
|
|
||||||
|
let host = "lavoixduntexte.normalesup.eu";
|
||||||
|
|
||||||
|
in {
|
||||||
|
services.wordpress.sites.${host} = { database.tablePrefix = "wp_lvdt_"; };
|
||||||
|
|
||||||
|
services.nginx.virtualHosts.${host} = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue