diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-22 20:07:14 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-23 01:43:33 +0200 |
commit | 750fe5a43b957b91a26069cf8a4fe19fc7b2633c (patch) | |
tree | 79b4fb8d49ad7a38884e8453349635a7f715ad7e /modules/private/websites/papa | |
parent | fcbdf67afe262bf6b35a4047956b2f8c12a04cb1 (diff) | |
download | Nix-750fe5a43b957b91a26069cf8a4fe19fc7b2633c.tar.gz Nix-750fe5a43b957b91a26069cf8a4fe19fc7b2633c.tar.zst Nix-750fe5a43b957b91a26069cf8a4fe19fc7b2633c.zip |
Remove webappdirs
Diffstat (limited to 'modules/private/websites/papa')
-rw-r--r-- | modules/private/websites/papa/maison_bbc.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/private/websites/papa/maison_bbc.nix b/modules/private/websites/papa/maison_bbc.nix index 528c832..3eb736e 100644 --- a/modules/private/websites/papa/maison_bbc.nix +++ b/modules/private/websites/papa/maison_bbc.nix | |||
@@ -1,23 +1,21 @@ | |||
1 | { lib, config, ... }: | 1 | { lib, config, ... }: |
2 | let | 2 | let |
3 | cfg = config.myServices.websites.papa.maison_bbc; | 3 | cfg = config.myServices.websites.papa.maison_bbc; |
4 | webappdirs = config.services.websites.webappDirsPaths; | ||
5 | in { | 4 | in { |
6 | options.myServices.websites.papa.maison_bbc.enable = lib.mkEnableOption "enable Papa Maison bbc website"; | 5 | options.myServices.websites.papa.maison_bbc.enable = lib.mkEnableOption "enable Papa Maison bbc website"; |
7 | 6 | ||
8 | config = lib.mkIf cfg.enable { | 7 | config = lib.mkIf cfg.enable { |
9 | services.webstats.sites = [ { name = "maison.bbc.bouya.org"; } ]; | 8 | services.webstats.sites = [ { name = "maison.bbc.bouya.org"; } ]; |
10 | 9 | ||
11 | services.websites.webappDirs.papa_maison_bbc = ./maison_bbc_static; | ||
12 | services.websites.env.production.vhostConfs.papa_maison_bbc = { | 10 | services.websites.env.production.vhostConfs.papa_maison_bbc = { |
13 | certName = "papa"; | 11 | certName = "papa"; |
14 | addToCerts = true; | 12 | addToCerts = true; |
15 | hosts = [ "maison.bbc.bouya.org" ]; | 13 | hosts = [ "maison.bbc.bouya.org" ]; |
16 | root = webappdirs.papa_maison_bbc; | 14 | root = ./maison_bbc_static; |
17 | extraConfig = [ | 15 | extraConfig = [ |
18 | '' | 16 | '' |
19 | ErrorDocument 404 /index.html | 17 | ErrorDocument 404 /index.html |
20 | <Directory ${webappdirs.papa_maison_bbc}> | 18 | <Directory ${./maison_bbc_static}> |
21 | DirectoryIndex index.htm index.html | 19 | DirectoryIndex index.htm index.html |
22 | AllowOverride None | 20 | AllowOverride None |
23 | Require all granted | 21 | Require all granted |