From e98051b3eb2461aa1835b031b11baf621d1def3b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 18 Sep 2021 16:56:45 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 9 ++++----- manifest.json | 6 ------ scripts/change_url | 2 +- scripts/install | 2 +- 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0a2987b..3af9dcc 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,14 +1,13 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { # Force usage of https if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass http://127.0.0.1:__PORT__/; - proxy_set_header Host $host; - proxy_pass_header Server; + proxy_pass http://127.0.0.1:__PORT__/; + proxy_set_header Host $host; + proxy_pass_header Server; proxy_buffering off; more_set_headers "X-Frame-Options : ALLOWALL"; proxy_set_header X-Real-IP $remote_addr; diff --git a/manifest.json b/manifest.json index f7e4ac6..6fae416 100755 --- a/manifest.json +++ b/manifest.json @@ -32,12 +32,6 @@ "name": "domain", "type": "domain" }, - { - "name": "path", - "type": "path", - "example": "/n8n", - "default": "/n8n" - }, { "name": "admin", "type": "user" diff --git a/scripts/change_url b/scripts/change_url index 6c5ec6a..17b25b5 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -17,7 +17,7 @@ old_domain=$YNH_APP_OLD_DOMAIN old_path=$YNH_APP_OLD_PATH new_domain=$YNH_APP_NEW_DOMAIN -new_path=$YNH_APP_NEW_PATH +new_path="/" app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/install b/scripts/install index b2e0d44..adb32a3 100755 --- a/scripts/install +++ b/scripts/install @@ -24,7 +24,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 password=$YNH_APP_ARG_PASSWORD admin=$YNH_APP_ARG_ADMIN