options.myServices.websites.ludivine.production.enable = lib.mkEnableOption "enable Ludivine's website in production";
config = lib.mkIf cfg.enable {
- services.duplyBackup.profiles.ludivine_production.rootDir = app.varDir;
- services.duplyBackup.profiles.ludivine_production.remotes = ["eriomem" "ovh"];
services.webstats.sites = [ { name = "ludivinecassal.com"; } ];
services.phpApplication.apps.ludivine_production = {
websiteEnv = "production";
certName = "ludivine";
certMainHost = "ludivinecassal.com";
hosts = ["ludivinecassal.com" "www.ludivinecassal.com" ];
- root = pcfg.webappDirs.ludivine_production;
+ root = app.webRoot;
extraConfig = [
''
RewriteEngine on
Use Stats ludivinecassal.com
- <Directory ${pcfg.webappDirs.ludivine_production}>
+ <Directory ${app.webRoot}>
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
Require all granted