1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/redmine_ynh.git synced 2024-09-03 20:16:16 +02:00

Set sub path

This commit is contained in:
ericgaspar 2022-04-13 13:56:33 +02:00
parent 5f407edc09
commit 2284e264ef
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,5 @@
location / {
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
proxy_pass http://127.0.0.1:__PORT__/;
proxy_redirect off;

View file

@ -32,6 +32,12 @@
"name": "domain",
"type": "domain"
},
{
"name": "path",
"type": "path",
"example": "/redmine",
"default": "/redmine"
},
{
"name": "is_public",
"type": "boolean",

View file

@ -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
app=$YNH_APP_INSTANCE_NAME