X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fisabelle%2Faten_production.nix;h=928a8153b4ef348e8d95f20da0942b4a65de1d05;hb=5315b439af1f72c3282549508ae58d86d66e38ec;hp=367171227e052ae1193974fcf0d73a63fcc7eea1;hpb=5a61f6ad5164a735be26e016c59e72252ffb49b7;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/isabelle/aten_production.nix b/modules/private/websites/isabelle/aten_production.nix index 3671712..928a815 100644 --- a/modules/private/websites/isabelle/aten_production.nix +++ b/modules/private/websites/isabelle/aten_production.nix @@ -12,8 +12,6 @@ in { options.myServices.websites.isabelle.aten_production.enable = lib.mkEnableOption "enable Aten's website in production"; config = lib.mkIf cfg.enable { - services.duplyBackup.profiles.isabelle_aten_production.rootDir = app.varDir; - services.duplyBackup.profiles.isabelle_aten_production.remotes = ["eriomem" "ovh"]; services.webstats.sites = [ { name = "aten.pro"; } ]; services.phpApplication.apps.isabelle_aten_production = { websiteEnv = "production"; @@ -42,8 +40,7 @@ in { phpPackage = pkgs.php72; }; - secrets.keys = [{ - dest = "websites/isabelle/aten_production"; + secrets.keys."websites/isabelle/aten_production" = { user = config.services.httpd.Prod.user; group = config.services.httpd.Prod.group; permissions = "0400"; @@ -57,12 +54,12 @@ in { SetEnv APP_SECRET "${secrets.secret}" SetEnv DATABASE_URL "${psql_url}" ''; - }]; + }; services.websites.env.production.vhostConfs.isabelle_aten_production = { certName = "isabelle"; certMainHost = "aten.pro"; hosts = [ "aten.pro" "www.aten.pro" ]; - root = pcfg.webappDirs.isabelle_aten_production; + root = app.webRoot; extraConfig = [ '' @@ -79,7 +76,7 @@ in { ErrorDocument 401 "" - + Options Indexes FollowSymLinks MultiViews Includes AllowOverride All Require all granted