From 19c436b401e16fe87e59b3592cb52aaef7297d01 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 12 Apr 2022 23:01:30 +0200 Subject: [PATCH] install in domain --- conf/nginx.conf | 3 +-- manifest.json | 6 ------ scripts/install | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0d5ce06..748b3cb 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,4 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { proxy_pass http://127.0.0.1:__PORT__/; proxy_redirect off; diff --git a/manifest.json b/manifest.json index 713381e..961f9cb 100644 --- a/manifest.json +++ b/manifest.json @@ -32,12 +32,6 @@ "name": "domain", "type": "domain" }, - { - "name": "path", - "type": "path", - "example": "/red", - "default": "/red" - }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 63a82c5..b4c8721 100644 --- 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 app=$YNH_APP_INSTANCE_NAME