1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moncycle_ynh.git synced 2024-09-03 19:46:16 +02:00

Update nginx.conf

This commit is contained in:
Limezy 2024-02-21 00:06:15 +07:00
parent 0b18bbbe68
commit a853eb6f00

View file

@ -25,10 +25,13 @@ location __PATH__/ {
access_log off;
}
location /api/version {
rewrite ^/api/version$ /api/version.json;
}
# Default indexes and catch-all
rewrite ^/(connexion|compte)$ /$1.php;
rewrite ^/api/version$ /api/version.json;
rewrite ^/api/([a-zA-Z0-9_^\.]+)(\?.*)?$ /api/$1.php$2;
rewrite ^/api/([a-zA-Z0-9_]+)(\?.*)?$ /api/$1.php$2;
index index.php index.html;
try_files $uri $uri/ $uri.php?$args;