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

Merge pull request #52 from YunoHost-Apps/testing

Testing | only display a warning when people are reverseproxying to an external IP
This commit is contained in:
Alexandre Aubin 2024-01-12 17:25:45 +01:00 committed by GitHub
commit f56b897dc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ There two typical use cases are covered:
- **reverse-proxy** : create an app tile to expose an app listening on a specific port, typically something that you manually installed (with or without Docker) locally or on another machine.
**Shipped version:** 2.0~ynh2
**Shipped version:** 2.0~ynh3
## Documentation and resources
* Official app website: <https://en.wikipedia.org/wiki/Reverse_proxy>

View file

@ -23,7 +23,7 @@ Ces deux cas d'usage sont gérés:
- **reverse-proxy** : créer une tuile pour une application locale qui écoute sur un port donné, typiquement quelque chose que vous avez installé manuellement (avec ou sans Docker), sur cette machine ou sur une autre machine.
**Version incluse :** 2.0~ynh2
**Version incluse :** 2.0~ynh3
## Documentations et ressources
* Site officiel de lapp : <https://en.wikipedia.org/wiki/Reverse_proxy>

View file

@ -7,7 +7,7 @@ name = "Redirect"
description.en = "Create a redirection or a proxy to another path"
description.fr = "Créer une redirection ou un proxy vers un autre emplacement"
version = "2.0~ynh2"
version = "2.0~ynh3"
maintainers = []

View file

@ -11,6 +11,6 @@ _validate_redirect_uri() {
# Avoid uncrypted remote destination with reverse proxy mode
# Indeed the SSO send the password in all requests in HTTP headers
if [[ "$redirect_type" = "reverseproxy" ]] && [[ ! $target =~ $URL_REGEX_SECURE ]]; then
ynh_die --message="For secure reason, you can't use an unencrypted http remote destination couple with ssowat for your reverse proxy: $target" 1
ynh_print_warn --message="Reverseproxying using cleartext HTTP to a possibly external machine ($target) is insecure ... please be super careful about this."
fi
}