Skip to content
Snippets Groups Projects
Commit d0ded3e5 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

configurable list of proxies to exclude of client IP address computation

parent ab6034f8
Branches
Tags
No related merge requests found
......@@ -3,6 +3,7 @@ support_email = support@my.fqdn
name = eduGAIN Access Check
url = https://access-check.my.fqdn
login_url = https://access-check.my.fqdn/Shibboleth.sso/Login
proxies =
[setup]
# templates theme
......
......@@ -26,6 +26,8 @@ sub startup {
$self->plugin('INIConfig', { file => $ENV{ACCESS_CHECK_CONFIG} || 'conf/manager.conf' });
my $config = $self->config();
$self->plugin(
'TemplateToolkit',
{
......@@ -39,9 +41,13 @@ sub startup {
}
);
$self->plugin('ClientIP');
my $config = $self->config();
$self->plugin(
'ClientIP',
{
private => [ '127.0.0.0/8' ],
ignore => [ $self->string_to_list($config->{app}->{proxies}) ]
}
);
$self->log(
Mojo::Log->new(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment