From b7921a2a97d03fc01498477c0fbb873b9069e0f4 Mon Sep 17 00:00:00 2001
From: Renan Bernordi <altendorfme@gmail.com>
Date: Sat, 8 Feb 2025 00:56:06 -0300
Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=A3o=20para=20urls=20que=20termin?=
 =?UTF-8?q?am=20com=20extens=C3=A3o=20.php?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/data/domain_rules.php | 3 +++
 default.conf              | 6 ++++++
 2 files changed, 9 insertions(+)

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;