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