mirror of
https://github.com/YunoHost-Apps/redirect_ynh.git
synced 2024-09-03 20:16:10 +02:00
75 lines
2.6 KiB
JSON
75 lines
2.6 KiB
JSON
{
|
|
"name": "Redirect",
|
|
"id": "redirect",
|
|
"packaging_format": 1,
|
|
"description": {
|
|
"en": "Create a redirection or a proxy to another path",
|
|
"fr": "Créer une redirection ou un proxy vers un autre emplacement"
|
|
},
|
|
"version": "1.0.2~ynh1",
|
|
"license": "AGPL-3.0-or-later",
|
|
"url": "https://github.com/YunoHost-Apps/redirect_ynh",
|
|
"upstream": {
|
|
"license": "AGPL-3.0-or-later",
|
|
"website": "https://github.com/YunoHost-Apps/redirect_ynh"
|
|
},
|
|
"maintainer": {
|
|
"name": "alexAubin",
|
|
"email": "alex.aubin@mailoo.org"
|
|
},
|
|
"requirements": {
|
|
"yunohost": ">= 4.2.0"
|
|
},
|
|
"multi_instance": true,
|
|
"services": [
|
|
"nginx"
|
|
],
|
|
"arguments": {
|
|
"install" : [
|
|
{
|
|
"name": "domain",
|
|
"type": "domain",
|
|
},
|
|
{
|
|
"name": "path",
|
|
"type": "path",
|
|
"example": "/redirect",
|
|
"default": "/redirect"
|
|
},
|
|
{
|
|
"name": "redirect_path",
|
|
"type": "string",
|
|
"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",
|
|
"type": "string",
|
|
"ask": {
|
|
"en": "Redirect type",
|
|
"fr": "Type de redirection"
|
|
},
|
|
"choices": {
|
|
"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)."
|
|
},
|
|
"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,
|
|
"visible": "redirect_type == 'proxy'",
|
|
"help": "You can manage public or private mode only with the proxy mode."
|
|
}
|
|
]
|
|
}
|
|
}
|