diff --git a/check_process b/check_process index d088391..41dbc56 100644 --- a/check_process +++ b/check_process @@ -9,7 +9,7 @@ is_public=1 (PUBLIC|public=1|private=0) ; Checks pkg_linter=1 - setup_sub_dir=0 #Not supported in upstream app + setup_sub_dir=1 setup_root=1 setup_nourl=0 setup_private=1 diff --git a/conf/nginx.conf b/conf/nginx.conf index 5004c38..11cb4b2 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,8 +1,8 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location / { +location __PATH__/ { # Path to source - root __FINALPATH__/ ; + alias __FINALPATH__/ ; # Force usage of https if ($scheme = http) { @@ -11,5 +11,4 @@ location / { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; - } \ No newline at end of file diff --git a/manifest.json b/manifest.json index 7510903..49e45b1 100644 --- a/manifest.json +++ b/manifest.json @@ -25,12 +25,14 @@ { "name": "domain", "type": "domain", - "help": { - "en": "RetroArch requires its own subdomain", - "fr": "RetroArch nécessite son propre sous-domaine" - }, "example": "retroarch.example.com" }, + { + "name": "path", + "type": "path", + "example": "/retroarch", + "default": "/retroarch" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 4d01829..80302fc 100755 --- a/scripts/install +++ b/scripts/install @@ -25,7 +25,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url="/" +path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC app=$YNH_APP_INSTANCE_NAME