Lines 68-73
my $apiv1 = builder {
Link Here
|
68 |
builder { |
68 |
builder { |
69 |
enable "ReverseProxy"; |
69 |
enable "ReverseProxy"; |
70 |
enable "Plack::Middleware::Static"; |
70 |
enable "Plack::Middleware::Static"; |
|
|
71 |
|
72 |
my @proxies = split( / /, $ENV{KOHA_TRUSTED_PROXIES} ); |
73 |
enable 'Plack::Middleware::RealIP', |
74 |
header => 'X-Forwarded-For', |
75 |
trusted_proxy => [@proxies]; |
76 |
|
71 |
# + is required so Plack doesn't try to prefix Plack::Middleware:: |
77 |
# + is required so Plack doesn't try to prefix Plack::Middleware:: |
72 |
enable "+Koha::Middleware::SetEnv"; |
78 |
enable "+Koha::Middleware::SetEnv"; |
73 |
|
79 |
|
74 |
- |
|
|