mirror of
https://github.com/YunoHost-Apps/redirect_ynh.git
synced 2024-09-03 20:16:10 +02:00
Update _common.sh: only display a warning when people are reverseproxying to an external IP
This commit is contained in:
parent
d63b681d7c
commit
343f909497
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue