From 2a670f71df0e7ac61395823827afe16476f6d5b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 10 Feb 2020 16:45:33 +0100 Subject: [PATCH] Add website for Leila --- modules/private/websites/leila/production.nix | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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 cfg = config.myServices.websites.leila.production; varDir = "/var/lib/ftp/leila"; in { - options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's website in production"; + options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's websites in production"; config = lib.mkIf cfg.enable { services.phpfpm.poolConfigs.leila = '' @@ -23,6 +23,7 @@ in { services.webstats.sites = [ { name = "leila.bouya.org"; } { name = "chorale.leila.bouya.org"; } + { name = "syrwennecreation.bouya.org"; } ]; services.websites.env.production.modules = [ "proxy_fcgi" ]; @@ -49,6 +50,26 @@ in { '' ]; }; + services.websites.env.production.vhostConfs.leila_syrwenne = { + certName = "leila"; + addToCerts = true; + hosts = [ "syrwennecreation.bouya.org" ]; + root = "${varDir}/Syrwennecreation"; + extraConfig = [ + '' + Use Stats syrwennecreation.bouya.org + + DirectoryIndex index.php index.htm index.html + Options Indexes FollowSymLinks MultiViews Includes + AllowOverride None + + + SetHandler "proxy:unix:/run/phpfpm/leila.sock|fcgi://localhost" + + + '' + ]; + }; services.websites.env.production.vhostConfs.leila = { certName = "leila"; certMainHost = "leila.bouya.org"; -- 2.41.0