WWW-Suffit-Server
view release on metacpan or search on metacpan
lib/WWW/Suffit/Server.pm view on Meta::CPAN
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.
B<TLS_Single_Accept> - Only accept one connection at a time.
=back
=head2 SECURITY DIRECTIVES
=over 8
=item PrivateKeyFile, PublicKeyFile
PrivateKeyFile /var/lib/myapp/rsa-private.key
PublicKeyFile /var/lib/myapp/rsa-public.key
Private and Public RSA key files
If not possible to read files by the specified paths, they will
be created automatically
Defaults:
PrivateKeyFile /var/lib/E<lt>MONIKERE<gt>/rsa-private.key
PublicKeyFile /var/lib/E<lt>MONIKERE<gt>/rsa-public.key
=item RSA_KeySize
RSA_KeySize 2048
RSA Key size. This is size (length) of the RSA Key.
Allowed key sizes in bits: C<512>, C<1024>, C<2048>, C<3072>, C<4096>
Default: 2048
=item Secret
Secret "My$ecretPhr@se!"
HMAC secret passphrase
Default: md5(rsa_private_file)
=back
=head2 ATHORIZATION DIRECTIVES
=over 8
=item AuthDBURL, AuthDBURI
AuthDBURI "mysql://user:pass@mysql.example.com/authdb \
?mysql_auto_reconnect=1&mysql_enable_utf8=1"
AuthDBURI "sqlite:///var/lib/myapp/auth.db?sqlite_unicode=1"
Authorization database connect string (Data Source URI)
This directive written in the URI form
Default: "sqlite:///var/lib/E<lt>MONIKERE<gt>/auth.db?sqlite_unicode=1"
=item AuthDBCachedConnection
AuthDBCachedConnection 1
AuthDBCachedConnection Yes
AuthDBCachedConnection On
AuthDBCachedConnection Enable
This directive defines status of caching while establishing of connection to database
See L<WWW::Suffit::AuthDB/cached>
Default: false (no caching connection)
=item AuthDBCacheExpire, AuthDBCacheExpiration
AuthDBCacheExpiration 300
The expiration time
See L<WWW::Suffit::AuthDB/expiration>
Default: 300 (5 min)
=item AuthDBCacheMaxKeys
AuthDBCacheMaxKeys 1024
The maximum keys number in cache
See L<WWW::Suffit::AuthDB/max_keys>
Default: 1024*1024 (1`048`576 keys max)
=item AuthDBSourceFile
AuthDBSourceFile /var/lib/myapp/authdb.json
Authorization database source file path.
This is simple JSON file that contains three blocks: users, groups and realms.
Default: /var/lib/E<lt>MONIKERE<gt>/authdb.json
=item Token
Token ed23...3c0a
Development token directive
This development directive allows authorization without getting real C<Authorization>
header from the client request
Default: none
=back
( run in 1.241 second using v1.01-cache-2.11-cpan-6aa56a78535 )