WWW-Suffit-Server
view release on metacpan or search on metacpan
lib/WWW/Suffit/Server.pm view on Meta::CPAN
Maximum number of connections a worker is allowed to accept, before
stopping gracefully and then getting replaced with a newly started worker,
defaults to the value of "accepts" in L<Mojo::Server::Prefork>.
Setting the value to 0 will allow workers to accept new connections
indefinitely
Default: 0
=item Clients
Clients 1000
Maximum number of accepted connections each worker process is allowed to
handle concurrently, before stopping to accept new incoming connections,
defaults to 100. Note that high concurrency works best with applications
that perform mostly non-blocking operations, to optimize for blocking
operations you can decrease this value and increase "workers" instead
for better performance
Default: 1000
=item Requests
Requests 100
Maximum number of keep-alive requests per connection
Default: 100
=item Spare
Spare 2
Temporarily spawn up to this number of additional workers if there
is a need, defaults to 2. This allows for new workers to be started while
old ones are still shutting down gracefully, drastically reducing the
performance cost of worker restarts
Default: 2
=item Workers
Workers 4
Number of worker processes, defaults to 4. A good rule of thumb is two
worker processes per CPU core for applications that perform mostly
non-blocking operations, blocking operations often require more and
benefit from decreasing concurrency with "clients" (often as low as 1)
Default: 4
=item TrustedProxy
TrustedProxy 127.0.0.1
TrustedProxy 10.0.0.0/8
TrustedProxy 172.16.0.0/12
TrustedProxy 192.168.0.0/16
TrustedProxy fc00::/7
Trusted reverse proxies, addresses or networks in C<CIDR> form.
The real IP address takes from C<X-Forwarded-For> header
B<NOTE!> This is a multiple directive
Default: All reverse proxies will be passed
=item Reload_Sig
Reload_Sig USR2
Reload_Sig HUP
This directive sets the dafault signal name that will be used to receive reload commands from the system
Default: USR2
=back
=head2 SSL/TLS SERVER DIRECTIVES
=over 8
=item TLS
TLS enabled
This directive enables or disables the TLS (https) listening
Default: disabled
=item TLS_CA, TLS_Cert, TLS_Key
TLS_CA certs/ca.crt
TLS_Cert certs/server.crt
TLS_Key certs/server.key
Paths to TLS files. Absolute or relative paths (started from /etc/E<lt>MONIKERE<gt>)
B<TLS_CA> - Path to TLS certificate authority file used to verify the peer certificate.
B<TLS_Cert> - Path to the TLS cert file, defaults to a built-in test certificate.
B<TLS_Key> - Path to the TLS key file, defaults to a built-in test key
Default: none
=item TLS_Ciphers, TLS_Verify, TLS_Version
TLS_Version TLSv1_2
TLS_Ciphers AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH
TLS_Verify 0x00
Directives for setting TLS extra data
TLS cipher specification string. For more information about the format see
L<https://www.openssl.org/docs/manmaster/man1/ciphers.html/CIPHER-STRINGS>.
B<TLS_Verify> - TLS verification mode. B<TLS_Version> - TLS protocol version.
Default: none
=item TLS_FD, TLS_Reuse, TLS_Single_Accept
B<TLS_FD> - File descriptor with an already prepared listen socket.
B<TLS_Reuse> - Allow multiple servers to use the same port with the C<SO_REUSEPORT> socket option.
( run in 2.831 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )