mirror of
https://github.com/YunoHost-Apps/redirect_ynh.git
synced 2024-09-03 20:16:10 +02:00
Zbmlgrerg⁵
This commit is contained in:
parent
e45e6c1dc7
commit
9c6d8e96a8
2 changed files with 3 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
location __PATH__/ {
|
||||
location __PATH__ {
|
||||
return 302 __TARGET__$request_uri;
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@ source /usr/share/yunohost/helpers
|
|||
# Avoid uncrypted remote destination with reverse proxy mode
|
||||
# Indeed the SSO send the password in all requests in HTTP headers
|
||||
url_regex='^(http://(127\.[0-9]+\.[0-9]+\.[0-9]+|localhost)|https://.*)(:[0-9]+)?(/.*)?$'
|
||||
[[ "$redirect_type" = "reverseproxy" ]] && [[ ! $redirect_path =~ $url_regex ]] && ynh_die \
|
||||
"For secure reason, you can't use an unencrypted http remote destination coupled with ssowat for your reverse proxy: $redirect_path" 1
|
||||
[[ "$redirect_type" = "reverseproxy" ]] && [[ ! "$target" =~ $url_regex ]] && ynh_die \
|
||||
"For secure reason, you can't use an unencrypted http remote destination coupled with ssowat for your reverse proxy: $target" 1
|
||||
|
||||
#=================================================
|
||||
# CONFIGURE NGINX
|
||||
|
|
Loading…
Add table
Reference in a new issue