diff --git a/conf/nginx.conf b/conf/nginx.conf index 7cd585c..3512ed3 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,10 +1,9 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { index index.html; root /usr/share/kiwiirc/; } -location __PATH__/webirc/ { +location /webirc/ { # Forward incoming requests to local webircgateway socket proxy_pass http://127.0.0.1:__PORT__/webirc/; diff --git a/manifest.json b/manifest.json index 7086acd..2a285be 100644 --- a/manifest.json +++ b/manifest.json @@ -31,12 +31,6 @@ { "name": "domain", "type": "domain" - }, - { - "name": "path", - "type": "path", - "example": "/kiwiirc", - "default": "/kiwiirc" } ] } diff --git a/scripts/install b/scripts/install index 07009ff..8f98785 100644 --- a/scripts/install +++ b/scripts/install @@ -21,7 +21,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url=$YNH_APP_ARG_PATH +path_url="/" app=$YNH_APP_INSTANCE_NAME