summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-03-12 12:55:42 -0500
committerEric Bavier <bavier@member.fsf.org>2015-03-12 15:55:58 -0500
commitca157ba9b8dfecff764e08fef5c04ec4a399e1cf (patch)
treeebc2023a62a059c77a0750c162e052c91d435ed0 /gnu
parent13e330be236f4d29bf8774fc64dfbd4ddcf0aa5f (diff)
gnu: Add Plack-Middleware-ReverseProxy.
* gnu/packages/web.scm (perl-plack-middleware-reverseproxy): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/web.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index d41ddccdc3..82d768e630 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1169,6 +1169,29 @@ can say what method it actually meant.")
required.")
(license (package-license perl))))
+(define-public perl-plack-middleware-reverseproxy
+ (package
+ (name "perl-plack-middleware-reverseproxy")
+ (version "0.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
+ "Plack-Middleware-ReverseProxy-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1zmsccdy6wr5hxzj07r1nsmaymyibk87p95z0wzknjw10lwmqs9f"))))
+ (build-system perl-build-system)
+ (propagated-inputs
+ `(("perl-plack" ,perl-plack)))
+ (home-page "http://search.cpan.org/dist/Plack-Middleware-ReverseProxy")
+ (synopsis "Supports app to run as a reverse proxy backend")
+ (description "Plack::Middleware::ReverseProxy resets some HTTP headers,
+which are changed by reverse-proxy. You can specify the reverse proxy address
+and stop fake requests using 'enable_if' directive in your app.psgi.")
+ (license (package-license perl))))
+
(define-public perl-test-tcp
(package
(name "perl-test-tcp")