mirror of
https://github.com/tips-of-mine/gestion-certificats2.git
synced 2025-07-01 20:28:42 +02:00
Delete nginx/api.conf
This commit is contained in:
@ -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;
|
|
||||||
}
|
|
Reference in New Issue
Block a user