From 68011302d39572f099d6e61c8f61d6413bc390ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 10 Jan 2023 19:45:20 +0100 Subject: [PATCH] Fix --- conf/nginx.conf | 14 +++++++------- manifest.json | 6 ++++++ scripts/install | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e2ba6c8..af69dcd 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,13 +1,13 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - proxy_pass http://127.0.0.1:__PORT__/; - proxy_redirect off; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Host $http_host; - proxy_set_header X-NginX-Proxy true; + proxy_pass http://127.0.0.1:__PORT__/; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $server_name; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; diff --git a/manifest.json b/manifest.json index 1e984cf..6ef9df4 100644 --- a/manifest.json +++ b/manifest.json @@ -32,6 +32,12 @@ "name": "domain", "type": "domain" }, + { + "name": "path", + "type": "path", + "example": "/mstream", + "default": "/mstream" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 5f113a5..65f11b3 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 key=$(ynh_string_random --length=64)