Add portal in trusted domains

This commit is contained in:
Xavier Guimard 2017-03-20 18:14:10 +00:00
parent 1c6d81e86c
commit 7aeef26a94

View File

@ -233,6 +233,9 @@ sub reloadConf {
$re->add("$_");
}
}
my $p = $self->conf->{portal};
$p =~ s#https?://([^/]*).*$#$1#;
$re->add( quotemeta($p) );
foreach my $vhost ( keys %{ $self->conf->{locationRules} } ) {
$self->logger->debug("Vhost $vhost added in trusted domains");
$re->add( quotemeta($vhost) );