1 { lib, pkgs, config, ... }:
3 adminer = pkgs.callPackage ../commons/adminer.nix {};
4 cfg = config.myServices.websites.florian.production;
5 varDir = "/var/lib/ftp/florian";
6 env = config.myEnv.websites.florian;
8 options.myServices.websites.florian.production.enable = lib.mkEnableOption "enable Florian's website production";
10 config = lib.mkIf cfg.enable {
11 security.acme2.certs."ftp".extraDomains."tellesflorian.com" = null;
13 services.websites.env.production.modules = adminer.apache.modules;
14 services.websites.env.production.vhostConfs.florian = {
16 certMainHost = "tellesflorian.com";
17 hosts = [ "tellesflorian.com" "www.tellesflorian.com" ];
18 root = "${varDir}/tellesflorian.com";
20 adminer.apache.vhostConf
22 ServerAdmin ${env.server_admin}
24 <Directory ${varDir}/tellesflorian.com>
25 DirectoryIndex index.php index.htm index.html
26 Options Indexes FollowSymLinks MultiViews Includes