NAME
Nginx::Runner - run nginx proxy server
SYNOPSIS
use
Nginx::Runner;
my
$nginx
= Nginx::Runner->new;
$nginx
->proxy(
"127.0.0.1:8080"
=>
"127.0.0.1:3000"
);
$nginx
->proxy(
[
ssl_certificate
=>
"/etc/ssl/nginx/nginx.pem"
],
[
ssl_certificate_key
=>
"/etc/ssl/nginx/nginx.pem"
]
);
$nginx
->run;
$SIG
{INT} =
sub
{
$nginx
->stop };
"Server available at "
,
sleep
;
COPYRIGHT AND LICENSE
Copyright (C) 2012, Sergey Zasenko.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.14.