diff --git a/README.md b/README.md index b523625..35adc77 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,6 @@ How to configure this app: LDAP is not supported (blocked until Gotify core upstream implements it). -## Limitations - - * Require dedicated domain like `gotify.domain.tld` - ## Links * Report a bug: https://github.com/YunoHost-Apps/gotify_ynh/issues diff --git a/README_fr.md b/README_fr.md index b301310..46b757f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour ## Vue d'ensemble Gotify est un serveur simple permettant d'envoyer et de recevoir des messages via websocket. -**Version incluse :** 2.0.20 +**Version incluse :** 2.0.22 ## Captures d'écran @@ -31,10 +31,6 @@ Pour configurer Gotify : Pas de support de LDAP (non implémenté upstream) -## Limitations - - * Nécessite un domaine dédié comme par exemple `gotify.domain.tld` - ## Liens * Signaler un bug : https://github.com/YunoHost-Apps/gotify_ynh/issues diff --git a/check_process b/check_process index 96906bb..35e23d0 100644 --- a/check_process +++ b/check_process @@ -6,12 +6,13 @@ ;; Test complet ; Manifest domain="domain.tld" (DOMAIN) + path="/path" (PATH) admin="john" (USER) password="pass" port="666" (PORT) ; Checks pkg_linter=1 - setup_sub_dir=0 + setup_sub_dir=1 setup_root=1 setup_nourl=0 setup_private=0 diff --git a/conf/nginx.conf b/conf/nginx.conf index 486711d..4963313 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -18,6 +18,7 @@ location __PATH__/stream { location __PATH__/ { proxy_pass http://127.0.0.1:__PORT__/; + #sub_path_only rewrite ^/__PATH__(/.*) $1 break; proxy_set_header Host $host; proxy_buffering off; fastcgi_param REMOTE_USER $remote_user; diff --git a/manifest.json b/manifest.json index de61340..51416c8 100644 --- a/manifest.json +++ b/manifest.json @@ -32,6 +32,16 @@ }, "example": "example.com" }, + { + "name": "path", + "type": "path", + "ask": { + "en": "Choose a path for Gotify", + "fr": "Choisissez un chemin pour Gotify" + }, + "example": "/gotify", + "default": "/gotify" + }, { "name": "admin", "type": "user", diff --git a/scripts/install b/scripts/install index fff7f5f..b016ecb 100755 --- a/scripts/install +++ b/scripts/install @@ -21,7 +21,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url=/ +path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=1 password=$YNH_APP_ARG_PASSWORD