diff --git a/check_process b/check_process index ca3dd77..764d722 100755 --- a/check_process +++ b/check_process @@ -10,7 +10,7 @@ is_public=1 (PUBLIC|public=1|private=0) ; Checks pkg_linter=1 - setup_sub_dir=0 + setup_sub_dir=1 setup_root=1 setup_nourl=0 setup_private=1 diff --git a/conf/nginx.conf b/conf/nginx.conf index 18cb0ff..323e3cb 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,5 @@ -location / { +#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; +location __PATH__/ { # Path to source alias __FINALPATH__/public/; diff --git a/manifest.json b/manifest.json index c7716ee..90446ce 100755 --- a/manifest.json +++ b/manifest.json @@ -37,6 +37,16 @@ }, "example": "podcast.example.com" }, + { + "name": "path", + "type": "path", + "ask": { + "en": "Choose a path for Castopod", + "fr": "Choisissez un chemin pour Castopod" + }, + "example": "/castopod", + "default": "/castopod" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 8eef909..4a722fb 100755 --- a/scripts/install +++ b/scripts/install @@ -21,7 +21,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