From: Jeremy Benoist Date: Tue, 15 Nov 2016 08:23:44 +0000 (+0100) Subject: Merge pull request #2570 from wallabag/add-creation-date X-Git-Tag: 2.1.4~7 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d213219ec785db757dba455acd53480ab0d292fb;hp=a8c6f29f3ee51ccfcce2e24ec352d9d48a34fc56;p=github%2Fwallabag%2Fwallabag.git Merge pull request #2570 from wallabag/add-creation-date Added creation date on entries view --- diff --git a/docs/de/user/installation.rst b/docs/de/user/installation.rst index 35a30f52..131aa1f8 100644 --- a/docs/de/user/installation.rst +++ b/docs/de/user/installation.rst @@ -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; } diff --git a/docs/en/user/installation.rst b/docs/en/user/installation.rst index 45e14616..77ef60a8 100644 --- a/docs/en/user/installation.rst +++ b/docs/en/user/installation.rst @@ -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; } diff --git a/docs/fr/user/installation.rst b/docs/fr/user/installation.rst index 4f94d6c8..f6afcda6 100644 --- a/docs/fr/user/installation.rst +++ b/docs/fr/user/installation.rst @@ -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; } diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 90a2419e..ed66d2be 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml @@ -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: