1 { lib, pkgs, config, myconfig, mylibs, ... }:
3 cfg = config.services.myWebsites.Nassime;
4 varDir = "/var/lib/ftp/nassime";
5 env = myconfig.env.websites.nassime;
7 options.services.myWebsites.Nassime = {
9 enable = lib.mkEnableOption "enable Nassime's website";
17 config = lib.mkIf cfg.production.enable {
18 services.myWebsites.commons.stats.enable = true;
19 services.myWebsites.commons.stats.sites = [
21 name = "nassime.bouya.org";
22 conf = ./nassime_goaccess.conf;
26 security.acme.certs."ftp".extraDomains."nassime.bouya.org" = null;
27 security.acme.certs."nassime" = config.services.myCertificates.certConfig // {
28 domain = "nassime.bouya.org";
31 services.myWebsites.production.vhostConfs.nassime = {
33 hosts = ["nassime.bouya.org" ];
37 Use Stats nassime.bouya.org
38 ServerAdmin ${env.server_admin}
41 DirectoryIndex index.php index.htm index.html
42 Options Indexes FollowSymLinks MultiViews Includes