2016-06-20 23:43:51 +02:00
|
|
|
{
|
|
|
|
"name": "Redirect",
|
|
|
|
"id": "redirect",
|
|
|
|
"packaging_format": 1,
|
|
|
|
"requirements": {
|
2018-05-26 10:27:44 +02:00
|
|
|
"yunohost": ">= 2.7.12"
|
2016-06-20 23:43:51 +02:00
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"en": "Create a redirection or a proxy to another path.",
|
|
|
|
"fr": "Créer une redirection ou un proxy vers un autre emplacement"
|
|
|
|
},
|
2019-05-15 17:34:00 +02:00
|
|
|
"version": "1.0.0~ynh3",
|
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",
|
2016-06-20 23:43:51 +02:00
|
|
|
"maintainer": {
|
2019-05-15 17:34:00 +02:00
|
|
|
"name": "alexAubin",
|
|
|
|
"email": "alex.aubin@mailoo.org"
|
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",
|
|
|
|
"type": "domain",
|
|
|
|
"ask": {
|
|
|
|
"en": "Choose a domain for your redirect",
|
|
|
|
"fr": "Choisissez un domaine pour votre redirection"
|
|
|
|
},
|
|
|
|
"example": "domain.org"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "path",
|
|
|
|
"type": "path",
|
|
|
|
"ask": {
|
|
|
|
"en": "Choose a path for your redirect",
|
|
|
|
"fr": "Choisissez un chemin pour votre redirection"
|
|
|
|
},
|
|
|
|
"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": "is_public",
|
|
|
|
"type": "boolean",
|
|
|
|
"ask": {
|
2018-05-26 10:27:44 +02:00
|
|
|
"en": "Is it a public redirect?",
|
2016-06-20 23:43:51 +02:00
|
|
|
"fr": "Est-ce une redirection publique ?"
|
|
|
|
},
|
2019-04-29 20:49:40 +02:00
|
|
|
"help": {
|
|
|
|
"en": "A private redirection will only be effective for logged-in users.",
|
|
|
|
"fr": "Une redirection privée ne fonctionnera que pour les utilisateurs identifiés."
|
|
|
|
},
|
2016-06-20 23:43:51 +02:00
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "redirect_type",
|
|
|
|
"ask": {
|
|
|
|
"en": "Redirect type",
|
|
|
|
"fr": "Type de redirection"
|
|
|
|
},
|
2016-11-23 21:50:38 +01:00
|
|
|
"choices": {
|
2018-12-22 14:53:17 +01:00
|
|
|
"visible_302" : "Visible (302, temporary redirect)",
|
|
|
|
"visible_301" : "Visible (301, permanent redirect)",
|
2016-11-23 21:50:38 +01:00
|
|
|
"proxy": "Proxy, invisible (Nginx proxy_pass)"
|
|
|
|
},
|
2016-06-20 23:43:51 +02:00
|
|
|
"default": "visible_302"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|