2016-06-20 23:43:51 +02:00
{
"name" : "Redirect" ,
"id" : "redirect" ,
"packaging_format" : 1 ,
"description" : {
2021-08-22 08:58:18 +02:00
"en" : "Create a redirection or a proxy to another path" ,
2016-06-20 23:43:51 +02:00
"fr" : "Créer une redirection ou un proxy vers un autre emplacement"
} ,
2022-06-11 14:18:45 +02:00
"version" : "1.0.2~ynh1" ,
2018-05-26 10:27:44 +02:00
"license" : "AGPL-3.0-or-later" ,
2019-04-29 20:49:40 +02:00
"url" : "https://github.com/YunoHost-Apps/redirect_ynh" ,
2021-06-04 16:26:13 +02:00
"upstream" : {
"license" : "AGPL-3.0-or-later" ,
"website" : "https://github.com/YunoHost-Apps/redirect_ynh"
} ,
2016-06-20 23:43:51 +02:00
"maintainer" : {
2019-05-15 17:34:00 +02:00
"name" : "alexAubin" ,
"email" : "alex.aubin@mailoo.org"
2021-01-23 15:21:17 +01:00
} ,
2021-06-06 17:42:43 +02:00
"requirements" : {
2021-06-04 16:26:13 +02:00
"yunohost" : ">= 4.2.0"
2016-06-20 23:43:51 +02:00
} ,
2018-05-26 10:27:44 +02:00
"multi_instance" : true ,
2016-06-20 23:43:51 +02:00
"services" : [
"nginx"
] ,
"arguments" : {
"install" : [
{
"name" : "domain" ,
2022-06-11 15:16:24 +02:00
"type" : "domain"
2016-06-20 23:43:51 +02:00
} ,
{
"name" : "path" ,
"type" : "path" ,
"example" : "/redirect" ,
"default" : "/redirect"
} ,
{
"name" : "redirect_path" ,
2019-04-29 20:49:40 +02:00
"type" : "string" ,
2016-06-20 23:43:51 +02:00
"ask" : {
"en" : "Redirect destination path" ,
"fr" : "Emplacement de destination"
} ,
"example" : "http://127.0.0.1:8080/app/" ,
"default" : "http://127.0.0.1"
} ,
{
"name" : "redirect_type" ,
2021-01-23 15:21:17 +01:00
"type" : "string" ,
2016-06-20 23:43:51 +02:00
"ask" : {
"en" : "Redirect type" ,
"fr" : "Type de redirection"
} ,
2016-11-23 21:50:38 +01:00
"choices" : {
2022-06-11 14:18:45 +02:00
"public_302" : "Visible redirect (302, temporary)." ,
"public_302_subpath" : "Visible redirect (302, temporary) + subpaths are propagated." ,
"public_301" : "Visible redirect (301, permanent)." ,
"public_301_subpath" : "Visible redirect (301, permanent) + subpaths are propagated." ,
"proxy" : "Proxy, invisible (NGINX proxy_pass)."
2016-11-23 21:50:38 +01:00
} ,
2022-06-11 14:18:45 +02:00
"default" : "public_302_subpath" ,
"help" : "Subpaths are propagated = transfer the subpath into the redirection. So if you redirect www.example.com to example.com, request https://www.example.com/foo/bar will redirect onto https://example.com/foo/bar instead of https://example.com"
} ,
{
"name" : "is_public" ,
"type" : "boolean" ,
"default" : true ,
2022-06-11 14:55:12 +02:00
"visible" : "redirect_type == 'proxy'" ,
"help" : "You can manage public or private mode only with the proxy mode."
2016-06-20 23:43:51 +02:00
}
]
}
}