]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #2570 from wallabag/add-creation-date
authorJeremy Benoist <j0k3r@users.noreply.github.com>
Tue, 15 Nov 2016 08:23:44 +0000 (09:23 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Nov 2016 08:23:44 +0000 (09:23 +0100)
Added creation date on entries view

docs/de/user/installation.rst
docs/en/user/installation.rst
docs/fr/user/installation.rst
src/Wallabag/CoreBundle/Resources/config/services.yml

index 35a30f5240a6f960236198b1f19ca889a7bd51a1..131aa1f8705495c8a70905ab8f42e81051bcc6d5 100644 (file)
@@ -187,6 +187,12 @@ Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installie
             internal;
         }
 
+        # return 404 for all other php files not matching the front controller
+        # this prevents access to other php files you don't want to be accessible.
+        location ~ \.php$ {
+            return 404;
+        }
+
         error_log /var/log/nginx/wallabag_error.log;
         access_log /var/log/nginx/wallabag_access.log;
     }
index 45e146164c4f1381e87ed6840d30a87d5d0f0134..77ef60a82f9f8385f87a27c1383efd77a5217804 100644 (file)
@@ -186,6 +186,12 @@ Assuming you installed wallabag in the ``/var/www/wallabag`` folder, here's the
             internal;
         }
 
+        # return 404 for all other php files not matching the front controller
+        # this prevents access to other php files you don't want to be accessible.
+        location ~ \.php$ {
+            return 404;
+        }
+
         error_log /var/log/nginx/wallabag_error.log;
         access_log /var/log/nginx/wallabag_access.log;
     }
index 4f94d6c87ac3741c324957a7f6dc5bc25f8615d9..f6afcda62884522c3f143a7a93750d1551ac6813 100644 (file)
@@ -183,6 +183,12 @@ En imaginant que vous vouliez installer wallabag dans le dossier ``/var/www/wall
             internal;
         }
 
+        # return 404 for all other php files not matching the front controller
+        # this prevents access to other php files you don't want to be accessible.
+        location ~ \.php$ {
+            return 404;
+        }
+
         error_log /var/log/nginx/wallabag_error.log;
         access_log /var/log/nginx/wallabag_access.log;
     }
index 90a2419eab70534ab93cba6417a6c3f55bede724..ed66d2bee1551a683d4565ca5a4c38716c0b5190 100644 (file)
@@ -41,21 +41,6 @@ services:
         arguments:
             -
                 error_message: '%wallabag_core.fetching_error_message%'
-                http_client:
-                    user_agents:
-                        'lifehacker.com': 'PHP/5.2'
-                        'gawker.com': 'PHP/5.2'
-                        'deadspin.com': 'PHP/5.2'
-                        'kotaku.com': 'PHP/5.2'
-                        'jezebel.com': 'PHP/5.2'
-                        'io9.com': 'PHP/5.2'
-                        'jalopnik.com': 'PHP/5.2'
-                        'gizmodo.com': 'PHP/5.2'
-                        '.wikipedia.org': 'Mozilla/5.2'
-                        '.fok.nl': 'Googlebot/2.1'
-                        'getpocket.com': 'PHP/5.2'
-                        'iansommerville.com': 'PHP/5.2'
-                        '.slashdot.org': 'PHP/5.2'
         calls:
             - [ setLogger, [ "@logger" ] ]
         tags: