⟦Graham Ollis⟧ > Clustericious > Clustericious::Command::nginx

Download:
Clustericious-1.16.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.16   Source  

NAME ^

Clustericious::Command::nginx - Clustericious command to stat nginx

VERSION ^

version 1.16

DESCRIPTION ^

Start an nginx web server.

NAME ^

Clustericious::Command::nginx - Clustericious command to stat nginx

EXAMPLES ^

nginx proxy

 ---
 % my $root = dir "@{[ home ]}/var/run";
 % $root->mkpath(0,0700);
 
 url: http://<%= $host %>:<%= $port %>
 start_mode:
   - hypnotoad
   - nginx
 
 nginx:
   args: -p <%= $root %>/nginx.<%= $port %>/
   autogen:
     filename: <%= $root %>/nginx.<%= $port %>/conf/nginx.conf
     content: |
       worker_processes auto;
       events {
         use epoll;
         worker_connections 4096;
       }
       http {
         server {
           listen <%= $host %>:<%= $port %>;
           location / {
             proxy_pass http://127.0.0.1:<%= $port %>;
             proxy_http_version 1.1;
             proxy_read_timeout 300;
           }
         }
       }
 
 hypnotoad:
   listen:
     - http://127.0.0.1:<%= $port %>
   pid_file: <%= $root %>/hypnotoad.<%= $port %>.pid

SEE ALSO ^

Clustericious

AUTHOR ^

Original author: Brian Duggan

Current maintainer: Graham Ollis <plicease@cpan.org>

Contributors:

Curt Tilmes

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by NASA GSFC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: