From 35599578c8abde5ad77c5b89a18dcb085c0c52b3 Mon Sep 17 00:00:00 2001 From: tips-of-mine <54597409+tips-of-mine@users.noreply.github.com> Date: Mon, 16 Jun 2025 17:29:23 +0200 Subject: [PATCH] Delete nginx/api.conf --- nginx/api.conf | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 nginx/api.conf diff --git a/nginx/api.conf b/nginx/api.conf deleted file mode 100644 index 26d8d15..0000000 --- a/nginx/api.conf +++ /dev/null @@ -1,17 +0,0 @@ -# Configuration Nginx pour les routes API -location /api/ { - # Retirer le préfixe /api et rediriger vers api.php - rewrite ^/api/(.*)$ /api.php?path=$1 last; -} - -location = /api.php { - fastcgi_pass php-fpm:9000; - fastcgi_index api.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - - # Headers pour les API - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always; -} \ No newline at end of file