From df608768c48b6a842fb926da0347034e2c347fa1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 15 May 2022 13:11:41 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 6 +++--- manifest.json | 6 ------ scripts/install | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 96577b4..d2bebba 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,5 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { + +location / { # Path to source alias __FINALPATH__/; @@ -24,5 +24,5 @@ location __PATH__/ { } location @rewrite { - rewrite ^/(.+)$ __PATH__/index.php?page=$1 last; + rewrite ^/(.+)$ /index.php?page=$1 last; } diff --git a/manifest.json b/manifest.json index c3e25af..1550102 100644 --- a/manifest.json +++ b/manifest.json @@ -35,12 +35,6 @@ "name": "domain", "type": "domain" }, - { - "name": "path", - "type": "path", - "example": "/automad", - "default": "/automad" - }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 208aa9b..bf6f292 100755 --- a/scripts/install +++ b/scripts/install @@ -25,7 +25,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url=$YNH_APP_ARG_PATH +path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC phpversion=$YNH_PHP_VERSION