anchor.diff:            "~ ^/(?:\\.|autotest|occ|issue|indie|db_|console)".extraConfig = ''
               return 404;
             '';
  -          "~ \\.php(?:$|/)" = {
  +          "~ ^\\/(?:index|remote|public|cron|core\\/ajax\\/update|status|ocs\\/v[12]|updater\\/.+|oc[ms]-provider\\/.+|.+\\/richdocumentscode\\/proxy)\\.php(?:$|\\/)" = {
               priority = 500;
               extraConfig = ''
                 include ${config.services.nginx.package}/conf/fastcgi.conf;
  
positive.code:           };
            "/" = {
              priority = 900;
              extraConfig = "try_files $uri $uri/ /index.php$request_uri;";
            };
            "~ ^/store-apps" = {
              priority = 201;
  
negative.code:       environment.systemPackages = [ occ ];
  
        services.nginx.enable = mkDefault true;
  
        # FIXME(ma27) make sure that the config works fine with Nextcloud 19
        # *and* Nextcloud 20 as soon as it gets released.
        services.nginx.virtualHosts.${cfg.hostName} = {
          root = cfg.package;
          locations = {
  