1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
# Copyright (C) 2008-2010, Sebastian Riedel.
=head1 NAME
Mojolicious::Guides::Cheatsheet - Reference
=head1 OVERVIEW
This document contains a concise all-purpose reference.
=head1 ENVIRONMENT VARIABLES
Many parts of L<Mojolicious> can be tuned with environment variables.
Debug environment variables are excluded because they are for developer use
only.
=head2 C<MOJO_APP>
Decides which L<Mojolicious> or L<Mojo> application will be used, should
always contain a class name like C<MyApp>, usually defaults to
L<Mojo::HelloWorld>.
MOJO_APP=MyApp
=head2 C<MOJO_CA_FILE>
The path to the TLS CA authority file, should always contain a path like
C</etc/tls/cacerts.pem>.
Note that L<IO::Socket::SSL> must be installed for TLS support.
MOJO_CA_FILE=/etc/tls/cacerts.pem
=head2 C<MOJO_CHUNK_SIZE>
Chunk size used for IO operations in bytes, a bigger chunk size speeds up IO
operations but will also use more memory.
MOJO_CHUNK_SIZE=1024
=head2 C<MOJO_EPOLL>
Force epoll mainloop for IO operations.
Note that L<IO::Epoll> must be installed for epoll support.
MOJO_EPOLL=1
=head2 C<MOJO_HOME>
Home directory for the L<Mojolicious> application, should always contain a
path like C</home/sri/myapp>.
MOJO_HOME=/home/sri/myapp
=head2 C<MOJO_KQUEUE>
Force kqueue mainloop for IO operations.
Note that L<IO::KQueue> must be installed for kqueue support.
MOJO_KQUEUE=1
=head2 C<MOJO_LOG_LEVEL>
Log level for the L<Mojolicious> application, should contain a valid log
level like C<debug> or C<error>.
MOJO_LOG_LEVEL=debug
MOJO_LOG_LEVEL=error
=head2 C<MOJO_MAX_LINE_SIZE>
Maximum line size for HTTP message start lines and headers in bytes, defaults
to C<10240>.
MOJO_MAX_LINE_SIZE=2048
=head2 C<MOJO_MAX_MEMORY_SIZE>
Maximum size in bytes for HTTP content to keep in memory, bigger content will
be written to temporary files, defaults to C<24576>.
MOJO_MAX_MEMORY_SIZE=2048
=head2 C<MOJO_MAX_MESSAGE_SIZE>
Maximum size for HTTP messages in bytes, defaults to C<524288>.
MOJO_MAX_MESSAGE_SIZE=1024
=head2 C<MOJO_MODE>
Run mode for the L<Mojolicious> application, should contain a valid mode like
C<development> or C<production>.
MOJO_MODE=development
MOJO_MODE=production
=head2 C<MOJO_NO_IPV6>
Disable IPv6 support, this might result in slightly better performance and
less memory use.
Note that L<IO::Socket::INET6> must be installed for IPv6 support.
MOJO_NO_IPV6=1
=head2 C<MOJO_NO_TLS>
Disable TLS support, this might result in slightly better performance and
less memory use.
Note that L<IO::Socket::SSL> must be installed for TLS support.
MOJO_NO_TLS=1
=head2 C<MOJO_POLL>
Force poll mainloop for IO operations, this should only be used for testing
since other mainloops are generally faster and scale better.
MOJO_POLL=1
=head2 C<MOJO_RELOAD>
Enable L<Mojolicious> application reloading, changes to your application will
be detected automatically so you don't have to restart the server manually.
MOJO_RELOAD=1
=head2 C<MOJO_REVERSE_PROXY>
Enable reverse proxy support for L<Mojolicious> application.
MOJO_REVERSE_PROXY=1
=head2 C<MOJO_TEMPLATE_CLASS>
Class the L<Mojolicious> renderer should use to find C<DATA> templates,
defaults to C<main>.
MOJO_TEMPLATE_CLASS=MyApp
=head2 C<MOJO_TMPDIR>
Directory for temporary files like huge uploads, by default a random platform
specific temporary directory will be used.
MOJO_TMPDIR=/tmp/mojo
=cut
|