diff --git a/app/data/domain_rules.php b/app/data/domain_rules.php index 7780a7e..971b0a2 100644 --- a/app/data/domain_rules.php +++ b/app/data/domain_rules.php @@ -64,6 +64,9 @@ return [ 'classElementRemove' => ['leaderboard__container'], 'fetchStrategies' => 'fetchFromSelenium', ], + 'lepoint.fr' => [ + 'classElementRemove' => ['paywall'], + ], 'fortune.com' => [ 'classElementRemove' => ['latest-popular-module','own','drawer-menu'], 'fetchStrategies' => 'fetchFromSelenium', diff --git a/default.conf b/default.conf index 3925dfe..330b58f 100644 --- a/default.conf +++ b/default.conf @@ -31,6 +31,12 @@ server { } location ~ \.php$ { + if ($uri ~ ^/p/) { + rewrite ^/p/(.*)$ /index.php?url=$1 last; + } + if ($uri ~ ^/api/) { + rewrite ^/api/(.*)$ /index.php?url=$1 last; + } include snippets/fastcgi-php.conf; fastcgi_pass 127.0.0.1:9000;