aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/immae/production.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-18 16:10:56 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-20 01:51:48 +0200
commitd3452fc59b9839846225fd254926c64a9c71f071 (patch)
treea98a0958b826ac4b2ab137720edf0195c65dd958 /modules/private/websites/immae/production.nix
parent514f9ec3beec470c4445be690673a0ceab9115b4 (diff)
downloadNix-d3452fc59b9839846225fd254926c64a9c71f071.tar.gz
Nix-d3452fc59b9839846225fd254926c64a9c71f071.tar.zst
Nix-d3452fc59b9839846225fd254926c64a9c71f071.zip
Refactor websites
Diffstat (limited to 'modules/private/websites/immae/production.nix')
-rw-r--r--modules/private/websites/immae/production.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/modules/private/websites/immae/production.nix b/modules/private/websites/immae/production.nix
index dff1053..dc89ae3 100644
--- a/modules/private/websites/immae/production.nix
+++ b/modules/private/websites/immae/production.nix
@@ -12,12 +12,13 @@ in {
12 config = lib.mkIf cfg.enable { 12 config = lib.mkIf cfg.enable {
13 services.webstats.sites = [ { name = "www.immae.eu"; } ]; 13 services.webstats.sites = [ { name = "www.immae.eu"; } ];
14 14
15 services.websites.env.production.vhostConfs.immae = { 15 services.websites.env.production.vhostConfs.immae_production = {
16 certName = "eldiron"; 16 certName = "immae";
17 addToCerts = true; 17 addToCerts = true;
18 hosts = [ "www.immae.eu" "immae.eu" ]; 18 certMainHost = "www.immae.eu";
19 root = varDir; 19 hosts = [ "www.immae.eu" "immae.eu" ];
20 extraConfig = [ 20 root = varDir;
21 extraConfig = [
21 '' 22 ''
22 Use Stats www.immae.eu 23 Use Stats www.immae.eu
23 24
@@ -68,8 +69,8 @@ in {
68 ]; 69 ];
69 }; 70 };
70 71
71 services.websites.env.production.vhostConfs.immaeFr = { 72 services.websites.env.production.vhostConfs.immae_fr = {
72 certName = "eldiron"; 73 certName = "immae";
73 addToCerts = true; 74 addToCerts = true;
74 hosts = [ "www.immae.fr" "immae.fr" ]; 75 hosts = [ "www.immae.fr" "immae.fr" ];
75 root = null; 76 root = null;
@@ -78,8 +79,8 @@ in {
78 '' ]; 79 '' ];
79 }; 80 };
80 81
81 services.websites.env.production.vhostConfs.bouya = { 82 services.websites.env.production.vhostConfs.immae_bouya = {
82 certName = "eldiron"; 83 certName = "immae";
83 addToCerts = true; 84 addToCerts = true;
84 hosts = [ "bouya.org" "www.bouya.org" ]; 85 hosts = [ "bouya.org" "www.bouya.org" ];
85 root = null; 86 root = null;