[#116] Log true client IP when running through a proxy

This commit is contained in:
Oliver Gorwits
2014-07-17 13:34:07 +01:00
parent 0ea6f754b4
commit 91c09305e9
3 changed files with 3 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ my $home = ($ENV{NETDISCO_HOME} || $ENV{HOME});
set(session_dir => dir($home, 'netdisco-web-sessions')->stringify);
set plack_middlewares => [
['Plack::Middleware::ReverseProxy'],
[ Expires => (
content_type => [qr{^application/javascript}, qr{^text/css}, qr{image}, qr{font}],
expires => 'access plus 1 day',