aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/leila
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-10 16:45:33 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-10 17:04:30 +0100
commit2a670f71df0e7ac61395823827afe16476f6d5b7 (patch)
tree8e573ee4e3a4a992258bdeaab61fc54b5e9871c4 /modules/private/websites/leila
parent2725698fdd5d3f3b3744feaa686f3081a6db1f0d (diff)
downloadNix-2a670f71df0e7ac61395823827afe16476f6d5b7.tar.gz
Nix-2a670f71df0e7ac61395823827afe16476f6d5b7.tar.zst
Nix-2a670f71df0e7ac61395823827afe16476f6d5b7.zip
Add website for Leila
Diffstat (limited to 'modules/private/websites/leila')
-rw-r--r--modules/private/websites/leila/production.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/modules/private/websites/leila/production.nix b/modules/private/websites/leila/production.nix
index 52cf8cf..4390d59 100644
--- a/modules/private/websites/leila/production.nix
+++ b/modules/private/websites/leila/production.nix
@@ -3,7 +3,7 @@ let
3 cfg = config.myServices.websites.leila.production; 3 cfg = config.myServices.websites.leila.production;
4 varDir = "/var/lib/ftp/leila"; 4 varDir = "/var/lib/ftp/leila";
5in { 5in {
6 options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's website in production"; 6 options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's websites in production";
7 7
8 config = lib.mkIf cfg.enable { 8 config = lib.mkIf cfg.enable {
9 services.phpfpm.poolConfigs.leila = '' 9 services.phpfpm.poolConfigs.leila = ''
@@ -23,6 +23,7 @@ in {
23 services.webstats.sites = [ 23 services.webstats.sites = [
24 { name = "leila.bouya.org"; } 24 { name = "leila.bouya.org"; }
25 { name = "chorale.leila.bouya.org"; } 25 { name = "chorale.leila.bouya.org"; }
26 { name = "syrwennecreation.bouya.org"; }
26 ]; 27 ];
27 28
28 services.websites.env.production.modules = [ "proxy_fcgi" ]; 29 services.websites.env.production.modules = [ "proxy_fcgi" ];
@@ -49,6 +50,26 @@ in {
49 '' 50 ''
50 ]; 51 ];
51 }; 52 };
53 services.websites.env.production.vhostConfs.leila_syrwenne = {
54 certName = "leila";
55 addToCerts = true;
56 hosts = [ "syrwennecreation.bouya.org" ];
57 root = "${varDir}/Syrwennecreation";
58 extraConfig = [
59 ''
60 Use Stats syrwennecreation.bouya.org
61 <Directory ${varDir}/Syrwennecreation>
62 DirectoryIndex index.php index.htm index.html
63 Options Indexes FollowSymLinks MultiViews Includes
64 AllowOverride None
65
66 <FilesMatch "\.php$">
67 SetHandler "proxy:unix:/run/phpfpm/leila.sock|fcgi://localhost"
68 </FilesMatch>
69 </Directory>
70 ''
71 ];
72 };
52 services.websites.env.production.vhostConfs.leila = { 73 services.websites.env.production.vhostConfs.leila = {
53 certName = "leila"; 74 certName = "leila";
54 certMainHost = "leila.bouya.org"; 75 certMainHost = "leila.bouya.org";