X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Fftp%2Fnassime.nix;fp=nixops%2Fmodules%2Fwebsites%2Fftp%2Fnassime.nix;h=0000000000000000000000000000000000000000;hb=f8026b6e4c869aa108f6361c8ccd50890657994d;hp=3c982d3f4cebe217ecbd13e692368ed23afdced1;hpb=4aac110f17f0528d90510eec00c9a8df60bcf04f;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/ftp/nassime.nix b/nixops/modules/websites/ftp/nassime.nix deleted file mode 100644 index 3c982d3..0000000 --- a/nixops/modules/websites/ftp/nassime.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ lib, pkgs, config, myconfig, ... }: -let - cfg = config.services.myWebsites.Nassime; - varDir = "/var/lib/ftp/nassime"; - env = myconfig.env.websites.nassime; -in { - options.services.myWebsites.Nassime = { - production = { - enable = lib.mkEnableOption "enable Nassime's website"; - }; - }; - - config = lib.mkIf cfg.production.enable { - services.webstats.sites = [ { name = "nassime.bouya.org"; } ]; - - security.acme.certs."ftp".extraDomains."nassime.bouya.org" = null; - - services.websites.production.vhostConfs.nassime = { - certName = "nassime"; - certMainHost = "nassime.bouya.org"; - hosts = ["nassime.bouya.org" ]; - root = varDir; - extraConfig = [ - '' - Use Stats nassime.bouya.org - ServerAdmin ${env.server_admin} - - - DirectoryIndex index.php index.htm index.html - Options Indexes FollowSymLinks MultiViews Includes - AllowOverride None - Require all granted - - '' - ]; - }; - }; -}