]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Upgrade Wallabag
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 13 Jun 2020 13:55:53 +0000 (15:55 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 13 Jun 2020 13:55:53 +0000 (15:55 +0200)
modules/private/websites/immae/history/_data/categories.yml
modules/private/websites/immae/history/_posts/2020-06-06-new-moteur-de-commentaires.md [moved from modules/private/websites/immae/history/_posts/2020-06-06-Moteur-de-commentaires.md with 100% similarity]
modules/private/websites/immae/history/_posts/2020-06-07-new-historique.md [moved from modules/private/websites/immae/history/_posts/2020-06-07-historique.md with 100% similarity]
modules/private/websites/immae/history/_posts/2020-06-13-maj-wallabag.md [new file with mode: 0644]
modules/private/websites/immae/production.nix
modules/private/websites/tools/tools/default.nix
pkgs/webapps/wallabag/default.nix
pkgs/webapps/wallabag/ldap.patch

index 56ea22f41e6c01a8ffe915892805a382008aca09..5c8637f4ab0c858baff9ff975212a514d884ae85 100644 (file)
@@ -2,6 +2,9 @@
 - name: Nouveautés
   color: green
 
+- name: Mises à jour
+  color: green
+
 - name: Pannes
   color: red
 
diff --git a/modules/private/websites/immae/history/_posts/2020-06-13-maj-wallabag.md b/modules/private/websites/immae/history/_posts/2020-06-13-maj-wallabag.md
new file mode 100644 (file)
index 0000000..da95010
--- /dev/null
@@ -0,0 +1,10 @@
+---
+title: "Mise à jour de Wallabag à 2.3.8"
+category: Mises à jour
+tags: [Wallabag]
+date: 2020-06-13
+---
+Wallabag n’était plus en mesure d’ajouter de nouveaux articles depuis
+une mise à jour (de php probablement : cf [cette issue sur
+github](https://github.com/wallabag/wallabag/issues/3926)). La dernière
+version de Wallabag corrige ce problème.
index ae4abe0a1157244ca60e6aa0692ce88749f7e0d6..046246d584ee9f7a544367059a16763b5096a809 100644 (file)
@@ -22,10 +22,10 @@ in {
       extraConfig  = [
         ''
         Use Stats www.immae.eu
+        Header always set Strict-Transport-Security "max-age=31536000"
 
         <LocationMatch /.well-known/(webfinger|host-meta)>
           Header always set Referrer-Policy "strict-origin-when-cross-origin"
-          Header always set Strict-Transport-Security "max-age=31536000"
           RequestHeader set X-Forwarded-Proto "https"
 
           RewriteRule ^(.*)$ https://mastodon.immae.eu%{REQUEST_URI} [QSA,L]
index bffcf84f81afee20ec092aa4ef997a9f3b9bafc6..cdfc7eb29e32befea94b8cfb715c3a2805467125 100644 (file)
@@ -15,7 +15,11 @@ let
     env = config.myEnv.tools.kanboard;
   };
   wallabag = pkgs.callPackage ./wallabag.nix {
-    wallabag = pkgs.webapps.wallabag.override { composerEnv = pkgs.composerEnv.override { php = pkgs.php72; }; };
+    wallabag = pkgs.webapps.wallabag.override {
+      composerEnv = pkgs.composerEnv.override {
+        php = pkgs.php73.withExtensions(e: pkgs.php73.enabledExtensions ++ [e.tidy]);
+      };
+    };
     env = config.myEnv.tools.wallabag;
   };
   yourls = pkgs.callPackage ./yourls.nix {
@@ -330,7 +334,7 @@ in {
         user = "wwwrun";
         group = "wwwrun";
         settings = wallabag.phpFpm.pool;
-        phpPackage = pkgs.php72;
+        phpPackage = pkgs.php73.withExtensions(e: pkgs.php73.enabledExtensions ++ [e.tidy]);
       };
       yourls = {
         user = "wwwrun";
index a437a311ba508fcd857e2a045a412614aaf95f9b..bd420d4de5c90d07d5069d4b3f1976504e232607 100644 (file)
@@ -29,11 +29,11 @@ composerEnv.buildPackage rec {
   doRemoveVendor = false;
   # Beware when upgrading, I probably messed up with the migrations table
   # (due to a psql bug in wallabag)
-  version = "2.3.6";
+  version = "2.3.8";
   name = "wallabag-${version}";
   src = fetchurl {
     url = "https://static.wallabag.org/releases/wallabag-release-${version}.tar.gz";
-    sha256 = "0m0dy3r94ks5pfxyb9vbgrsm0vrwdl3jd5wqwg4f5vd107lq90q1";
+    sha256 = "1sr62hfk2f2rl5by48dg8yd1gchngjnc850as17wr3w287p1kwsq";
   };
   unpackPhase = ''
     unpackFile "$src"
index 9caf7dac0c5543598b9aa1ead0bd982a76307b8b..e04dae11f10270d8a9e7a0d3db3aa142ecc5c25b 100644 (file)
@@ -134,15 +134,15 @@ index 02afc9ea..48fbb553 100644
              pattern: ^/
              form_login:
 diff --git a/composer.json b/composer.json
-index 68cfad05..32a3d1a4 100644
+index 0483da1d..e3e47bdc 100644
 --- a/composer.json
 +++ b/composer.json
-@@ -85,7 +85,11 @@
-         "friendsofsymfony/jsrouting-bundle": "^1.6.3",
+@@ -87,7 +87,11 @@
          "bdunogier/guzzle-site-authenticator": "^1.0.0",
          "defuse/php-encryption": "^2.1",
--        "html2text/html2text": "^4.1"
-+        "html2text/html2text": "^4.1",
+         "html2text/html2text": "^4.1",
+-        "sulu/symfony-intl-fix": "^1.0"
++        "sulu/symfony-intl-fix": "^1.0",
 +        "fr3d/ldap-bundle": "^3.0"
 +    },
 +    "suggest": {
@@ -151,21 +151,12 @@ index 68cfad05..32a3d1a4 100644
      "require-dev": {
          "doctrine/doctrine-fixtures-bundle": "~2.2",
 diff --git a/composer.lock b/composer.lock
-index 251ee081..37795e0b 100644
+index b3b0a4c6..8c8a87ee 100644
 --- a/composer.lock
 +++ b/composer.lock
-@@ -4,7 +4,7 @@
-         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
-         "This file is @generated automatically"
-     ],
--    "content-hash": "d2a0bd8408dccdeb7a7455996519829b",
-+    "content-hash": "4699d166d03a8e5f70d802d0bc3e6a20",
-     "packages": [
-         {
-             "name": "bdunogier/guzzle-site-authenticator",
 @@ -1346,6 +1346,65 @@
              ],
-             "time": "2018-12-14T19:44:53+00:00"
+             "time": "2019-05-09T11:53:40+00:00"
          },
 +        {
 +            "name": "fr3d/ldap-bundle",
@@ -229,7 +220,7 @@ index 251ee081..37795e0b 100644
          {
              "name": "friendsofsymfony/jsrouting-bundle",
              "version": "1.6.3",
-@@ -7027,6 +7086,59 @@
+@@ -7069,6 +7128,59 @@
                  "zf2"
              ],
              "time": "2018-04-25T15:33:34+00:00"
@@ -289,36 +280,11 @@ index 251ee081..37795e0b 100644
          }
      ],
      "packages-dev": [
-@@ -7561,12 +7673,12 @@
-             "source": {
-                 "type": "git",
-                 "url": "https://github.com/symfony/phpunit-bridge.git",
--                "reference": "5dab0d4b2ac99ab22b447b615fdfdc10ec4af3d5"
-+                "reference": "d61ec438634e0f234c6bda1c6ee97016bbb0e7a1"
-             },
-             "dist": {
-                 "type": "zip",
--                "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/5dab0d4b2ac99ab22b447b615fdfdc10ec4af3d5",
--                "reference": "5dab0d4b2ac99ab22b447b615fdfdc10ec4af3d5",
-+                "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/d61ec438634e0f234c6bda1c6ee97016bbb0e7a1",
-+                "reference": "d61ec438634e0f234c6bda1c6ee97016bbb0e7a1",
-                 "shasum": ""
-             },
-             "require": {
-@@ -7619,7 +7731,7 @@
-             ],
-             "description": "Symfony PHPUnit Bridge",
-             "homepage": "https://symfony.com",
--            "time": "2019-01-01T13:45:19+00:00"
-+            "time": "2019-01-16T13:27:11+00:00"
-         },
-         {
-             "name": "symfony/polyfill-php72",
 diff --git a/scripts/install.sh b/scripts/install.sh
-index 8b7ea03f..3a4a33ab 100755
+index affa715f..45254212 100755
 --- a/scripts/install.sh
 +++ b/scripts/install.sh
-@@ -26,5 +26,8 @@ ENV=$1
+@@ -37,5 +37,8 @@ fi
  TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
  
  git checkout $TAG
@@ -328,10 +294,10 @@ index 8b7ea03f..3a4a33ab 100755
  SYMFONY_ENV=$ENV $COMPOSER_COMMAND install --no-dev -o --prefer-dist
  php bin/console wallabag:install --env=$ENV
 diff --git a/scripts/update.sh b/scripts/update.sh
-index c62d104a..6259a431 100755
+index 3ef10439..eeee28d6 100755
 --- a/scripts/update.sh
 +++ b/scripts/update.sh
-@@ -32,6 +32,9 @@ git fetch origin
+@@ -42,6 +42,9 @@ git fetch origin
  git fetch --tags
  TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
  git checkout $TAG --force