X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fflorian%2Fproduction.nix;h=1c5ffa639e5f417aaa00c5a43c320fe04a0d2cfa;hb=fa25ffd4583cc362075cd5e1b4130f33306103f0;hp=1abc7158641041c55be7b2e189898c639798a81c;hpb=981fa80354fd6f00f49446777c38f77bd8a65f65;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/florian/production.nix b/modules/private/websites/florian/production.nix index 1abc715..1c5ffa6 100644 --- a/modules/private/websites/florian/production.nix +++ b/modules/private/websites/florian/production.nix @@ -1,27 +1,27 @@ { lib, pkgs, config, ... }: let - adminer = pkgs.callPackage ../commons/adminer.nix {}; - cfg = config.myServices.websites.florian.production; - varDir = "/var/lib/ftp/florian"; - env = config.myEnv.websites.florian; + adminer = pkgs.callPackage ../commons/adminer.nix { inherit config; }; + cfg = config.myServices.websites.florian.production; + varDir = "/var/lib/ftp/florian/tellesflorian.com"; + env = config.myEnv.websites.florian; in { options.myServices.websites.florian.production.enable = lib.mkEnableOption "enable Florian's website production"; config = lib.mkIf cfg.enable { - security.acme2.certs."ftp".extraDomains."tellesflorian.com" = null; + security.acme.certs."ftp".extraDomains."tellesflorian.com" = null; services.websites.env.production.modules = adminer.apache.modules; - services.websites.env.production.vhostConfs.florian = { + services.websites.env.production.vhostConfs.florian_production = { certName = "florian"; certMainHost = "tellesflorian.com"; hosts = [ "tellesflorian.com" "www.tellesflorian.com" ]; - root = "${varDir}/tellesflorian.com"; + root = varDir; extraConfig = [ - adminer.apache.vhostConf + (adminer.apache.vhostConf null) '' ServerAdmin ${env.server_admin} - + DirectoryIndex index.php index.htm index.html Options Indexes FollowSymLinks MultiViews Includes AllowOverride None