1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moncycle_ynh.git synced 2024-09-03 19:46:16 +02:00
This commit is contained in:
Limezy 2024-01-30 00:36:03 +07:00
parent 8bb27ae078
commit 3f32aee1e0
2 changed files with 4 additions and 7 deletions

View file

@ -26,12 +26,9 @@ location __PATH__/ {
}
# Default indexes and catch-all
rewrite ^/(export|inscription|compte)$ /$1.php;
rewrite ^/(connexion)$ /$1.html;
rewrite ^/api/(deconnexion)$ /api/$1.php;
rewrite ^/img/(captcha)$ /img/$1.php;
index index.html index.php;
try_files $uri $uri.php $uri/index.php $uri/ $1?$args $1.php?$args;
rewrite ^/(connexion|compte)$ /$1.html;
index index.php index.html;
try_files $uri $uri/ $uri.php?$args;
# Execute and serve PHP files
location ~ [^/]\.php(/|$) {

View file

@ -49,7 +49,7 @@ ram.runtime = "50M"
main.url = "/"
[resources.apt]
packages = "mariadb-server, php8.2-gd, php8.2-mysql, php8.2-mbstring"
packages = "mariadb-server, php8.2-gd, php8.2-mysql, php8.2-xml, php8.2-mbstring"
[resources.database]
type = "mysql"