2021-06-04 16:26:21 +02:00
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
It shall NOT be edited by hand.
-->
# Redirect for YunoHost
2021-01-23 15:21:17 +01:00
2022-06-05 16:08:00 +02:00
[![Integration level ](https://dash.yunohost.org/integration/redirect.svg )](https://dash.yunohost.org/appci/app/redirect) ![Working status ](https://ci-apps.yunohost.org/ci/badges/redirect.status.svg ) ![Maintenance status ](https://ci-apps.yunohost.org/ci/badges/redirect.maintain.svg )
2021-01-23 15:21:17 +01:00
[![Install Redirect with YunoHost ](https://install-app.yunohost.org/install-with-yunohost.svg )](https://install-app.yunohost.org/?app=redirect)
2016-06-20 23:43:51 +02:00
2021-06-04 16:26:21 +02:00
*[Lire ce readme en français.](./README_fr.md)*
> *This package allows you to install Redirect quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide ](https://yunohost.org/#/install ) to learn how to install it.*
## Overview
2021-08-29 17:25:38 +02:00
This application allows to integrate a custom tile in YunoHost's user portal. Typical use cases include:
- **visible 301/302 redirect** : having a "virtual" app tile that's just a redirection to another url or external website
- **invisible redirect / reverse-proxy** : creating an app tile for a local app listening on a specific port, or a Docker container, or an app hosted on another machine
2021-06-04 16:26:21 +02:00
2021-08-29 17:25:38 +02:00
In technical terms: this app only adds a NGINX configuration snippet with either `redirect` or `proxy_pass` rule, and a YunoHost tile + appropriate SSOwat configuration.
2021-06-04 16:26:21 +02:00
2022-08-29 08:47:01 +02:00
**Shipped version:** 1.0.2~ynh1
2022-08-16 23:30:29 +02:00
2021-08-29 17:25:38 +02:00
## Disclaimers / important information
2016-06-20 23:43:51 +02:00
2017-05-11 09:57:11 +02:00
## Redirect type
2016-06-20 23:43:51 +02:00
2017-05-11 09:57:11 +02:00
### Visible redirect
2016-06-20 23:43:51 +02:00
2021-08-29 17:25:38 +02:00
The client will be redirected to another url or external website
2016-06-20 23:43:51 +02:00
2021-08-29 17:25:38 +02:00
- `your-domain.com -> another-domain.net`
- `your-domain.com/foo -> another-domain.net/bar`
2016-06-20 23:43:51 +02:00
2021-08-29 17:25:38 +02:00
### Invisible redirect (a.k.a "reverse-proxy")
2016-06-20 23:43:51 +02:00
2021-08-29 17:25:38 +02:00
Visitor's address bar will remain the same. Typically used to integrate into YunoHost a manually-installed app into the portal.
2016-06-20 23:43:51 +02:00
2021-08-29 17:25:38 +02:00
- `you-domain.com/foo -> http://172.0.0.1:8080/app`
2016-11-24 07:28:58 +01:00
2021-08-29 17:25:38 +02:00
**IMPORTANT:** you may have to further tweak the `redirect.conf` in the nginx configuration, depending on your needs!
2016-06-20 23:43:51 +02:00
2021-08-29 17:25:38 +02:00
**IMPORTANT:** Many apps do not support being redirected to a different path due to relative links! This means that some apps being hosted for example on http://127.0.0.1:5050/app/ MUST be redirected to http://domain.tld/app/ and NOT http://domain.tld/someotherapp/. For example : an Odoo Docker container runs on http://127.0.0.1:8069/. You will not be able to redirect it to http://domain.tld/odoo/ ! You have to redirect it to the root, so for example http://odoo.domain.tld/
2021-06-04 16:26:21 +02:00
## Documentation and resources
2022-06-05 16:08:00 +02:00
* Official app website: < https: // github . com / YunoHost-Apps / redirect_ynh >
* YunoHost documentation for this app: < https: // yunohost . org / app_redirect >
* Report a bug: < https: // github . com / YunoHost-Apps / redirect_ynh / issues >
2021-06-04 16:26:21 +02:00
## Developer info
Please send your pull request to the [testing branch ](https://github.com/YunoHost-Apps/redirect_ynh/tree/testing ).
To try the testing branch, please proceed like that.
2022-06-05 16:08:00 +02:00
``` bash
2021-06-04 16:26:21 +02:00
sudo yunohost app install https://github.com/YunoHost-Apps/redirect_ynh/tree/testing --debug
or
sudo yunohost app upgrade redirect -u https://github.com/YunoHost-Apps/redirect_ynh/tree/testing --debug
```
2022-06-05 16:08:00 +02:00
**More info regarding app packaging:** < https: / / yunohost . org / packaging_apps >