diff --git a/conf/nginx.conf b/conf/nginx.conf index 791145d..a48fa91 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -26,10 +26,12 @@ location __PATH__/ { } # Default indexes and catch-all - rewrite ^__PATH__/(api/deconnexion|inscription|compte|export)$ __PATH__/$1.php; - rewrite ^__PATH__/(connexion)$ __PATH__/$1.html; + 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/ __PATH__/index.php?$args; + try_files $uri $uri.php $uri/index.php $uri/ $1?$args $1.php?$args; # Execute and serve PHP files location ~ [^/]\.php(/|$) { diff --git a/manifest.toml b/manifest.toml index 8fc3a90..a7d8eb0 100644 --- a/manifest.toml +++ b/manifest.toml @@ -42,7 +42,6 @@ ram.runtime = "50M" sha256 = "94c3010d12f9650ea87aecde046ef0ba4102308b566de94868adc76c69c22ccf" [resources.system_user] - allow_email = true [resources.install_dir] @@ -50,7 +49,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "mariadb-server, php8.2-gd, php8.2-mysql" + packages = "mariadb-server, php8.2-gd, php8.2-mysql, php8.2-mbstring" [resources.database] type = "mysql"