X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Fftp%2Fflorian.nix;fp=nixops%2Fmodules%2Fwebsites%2Fftp%2Fflorian.nix;h=0000000000000000000000000000000000000000;hb=f8026b6e4c869aa108f6361c8ccd50890657994d;hp=ebd461e4e95c8957afc68fc8ff4f484dedd77385;hpb=4aac110f17f0528d90510eec00c9a8df60bcf04f;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/ftp/florian.nix b/nixops/modules/websites/ftp/florian.nix deleted file mode 100644 index ebd461e..0000000 --- a/nixops/modules/websites/ftp/florian.nix +++ /dev/null @@ -1,68 +0,0 @@ -{ lib, pkgs, config, myconfig, ... }: -let - adminer = pkgs.callPackage ../commons/adminer.nix {}; - cfg = config.services.myWebsites.Florian; - varDir = "/var/lib/ftp/florian"; - env = myconfig.env.websites.florian; -in { - options.services.myWebsites.Florian = { - production = { - enable = lib.mkEnableOption "enable Florian's website production"; - }; - integration = { - enable = lib.mkEnableOption "enable Florian's website integration"; - }; - }; - - config = lib.mkMerge [ - (lib.mkIf cfg.production.enable { - security.acme.certs."ftp".extraDomains."tellesflorian.com" = null; - - services.websites.production.modules = adminer.apache.modules; - services.websites.production.vhostConfs.florian = { - certName = "florian"; - certMainHost = "tellesflorian.com"; - hosts = [ "tellesflorian.com" "www.tellesflorian.com" ]; - root = "${varDir}/tellesflorian.com"; - extraConfig = [ - adminer.apache.vhostConf - '' - ServerAdmin ${env.server_admin} - - - DirectoryIndex index.php index.htm index.html - Options Indexes FollowSymLinks MultiViews Includes - AllowOverride None - Require all granted - - '' - ]; - }; - }) - - (lib.mkIf cfg.integration.enable { - security.acme.certs."ftp".extraDomains."florian.immae.eu" = null; - - services.websites.integration.modules = adminer.apache.modules; - services.websites.integration.vhostConfs.florian = { - certName = "eldiron"; - addToCerts = true; - hosts = [ "florian.immae.eu" ]; - root = "${varDir}/florian.immae.eu"; - extraConfig = [ - adminer.apache.vhostConf - '' - ServerAdmin ${env.server_admin} - - - DirectoryIndex index.php index.htm index.html - Options Indexes FollowSymLinks MultiViews Includes - AllowOverride None - Require all granted - - '' - ]; - }; - }) - ]; -}