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 bebff77..fc5ed96 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 c47de2e..403e001 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 diff --git a/scripts/remove b/scripts/remove index 6eac120..577b97f 100755 --- a/scripts/remove +++ b/scripts/remove @@ -43,7 +43,6 @@ ynh_script_progression --message="Stopping and removing the systemd service..." # Remove the dedicated systemd config ynh_remove_systemd_config - #================================================= # REMOVE THE MYSQL DATABASE #=================================================