-
Notifications
You must be signed in to change notification settings - Fork 580
%ENV
Stefan Adams edited this page Oct 24, 2024
·
42 revisions
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
! ! ! Warn ! ! ! There is no guarantee on the list is always complete ! ! ! Dont worry ! ! ! Happy new 2014 year ! ! !
Full, unexplained list as of 9.38 with all module references listed per environment variable
- MOJO_HOME [Mojo::Home, Mojolicious::Commands (command line opt), Mojolicious::Lite] - Home dir for your work.
- MOJO_LOG_LEVEL /debug|info|warn|error|fatal/ [Mojo::Log, Test::Mojo] - Active log level.
- MOJO_MODE /'development'|'production'/ [Mojolicious, Mojolicious::Commands (command line opt), Mojolicious::Lite, Mojo::Server::Hypnotoad] - The operating mode for your application.
- MOJO_HELP [Mojolicious::Commands (command line opt)] - print any help.
- MOJO_APP [Mojolicious::Commands] - start the command line interface for application from the value of the MOJO_APP environment variable or Mojo::HelloWorld.
- MOJO_CONFIG [Mojolicious::Plugin::Config] - Full path to configuration file, defaults to the value of the MOJO_CONFIG environment variable or myapp.conf in the application home directory.
- MOJO_NO_DETECT bool [Mojolicious::Commands] - no detect environment (PSGI, CGI, ...). Automatic deployment environment detection can be disabled with the MOJO_NO_DETECT environment variable.
- MOJO_INACTIVITY_TIMEOUT [Mojo::Server::Daemon, Mojolicious::Command::daemon (command line opt), Mojo::UserAgent] - Maximum amount of time in seconds a connection can be inactive before getting closed, defaults to the value of the MOJO_INACTIVITY_TIMEOUT environment variable or 15(20 to UserAgent!). Setting the value to 0 will allow connections to be inactive indefinitely.
- MOJO_LISTEN [Mojo::Server::Daemon, Mojolicious::Command::daemon (command line opt)] - Comma separated list of one or more locations to listen on, defaults to the value of the MOJO_LISTEN environment variable or 'http://*:3000'.
- MOJO_REVERSE_PROXY bool [Mojo::Server::Hypnotoad, Mojolicious::Command::daemon (command line opt), Mojo::Message::Request, Mojo::Transaction] - Activate reverse proxy support, which allows for the X-Forwarded-For and X-Forwarded-Proto headers to be picked up automatically, defaults to the value of the MOJO_REVERSE_PROXY environment variable.
- MOJO_MAX_BUFFER_SIZE [Mojo::Content] - Maximum size in bytes of buffer for content parser, defaults to the value of the MOJO_MAX_BUFFER_SIZE environment variable or 262144.
- MOJO_MAX_LEFTOVER_SIZE [Mojo::Content] - Maximum size in bytes of buffer for pipelined HTTP requests, defaults to the value of the MOJO_MAX_LEFTOVER_SIZE environment variable or 262144.
- MOJO_MAX_LINE_SIZE [Mojo::Headers, Mojo::Message] - Maximum header line size in bytes, defaults to the value of the MOJO_MAX_LINE_SIZE environment variable or 10240.
- MOJO_MAX_MESSAGE_SIZE [Mojolicious::Lite, Mojo::Message, Mojolicious::Lite] - To protect you from excessively large files there is also a limit of 10MB (10485760) by default, which you can tweak with the MOJO_MAX_MESSAGE_SIZE environment variable.
- MOJO_MAX_WEBSOCKET_SIZE [Mojo::Transaction::WebSocket] - Maximum WebSocket message size in bytes, defaults to the value of the MOJO_MAX_WEBSOCKET_SIZE environment variable or 262144.
- MOJO_NO_IPV6 bool [Mojo::IOLoop, Mojo::IOLoop::Client, Mojo::IOLoop::Server, Mojo::UserAgent, Mojo::Server::Morbo, Mojo::Server::Daemon, Mojo::Server::Hypnotoad] - false to disable use IO::Socket::IP for IPv6.
- MOJO_NO_TLS bool [Mojo::IOLoop, Mojo::IOLoop::Client, Mojo::IOLoop::Server, Mojo::UserAgent, Mojo::Server::Morbo, Mojo::Server::Daemon, Mojo::Server::Hypnotoad] - false to disable use IO::Socket::SSL for SSL.
- MOJO_MAX_MEMORY_SIZE [Mojo::Asset::Memory] - Maximum size in bytes of data to keep in memory before automatically upgrading to a Mojo::Asset::File object, defaults to the value of the MOJO_MAX_MEMORY_SIZE environment variable or 262144.
- MOJO_TMPDIR [Mojo::Asset::File] - Temporary directory used to generate path, defaults to the value of the MOJO_TMPDIR environment variable or auto detection.
- MOJO_REACTOR [Mojo::Reactor] - Detect and load the best reactor implementation available, will try the value of the MOJO_REACTOR environment variable, Mojo::Reactor::EV or Mojo::Reactor::Poll.
- MOJO_CA_FILE [Mojo::UserAgent] - Path to TLS certificate authority file, defaults to the value of the MOJO_CA_FILE environment variable. Also activates hostname verification.
- MOJO_CERT_FILE [Mojo::UserAgent] - Path to TLS certificate file, defaults to the value of the MOJO_CERT_FILE environment variable.Mojo/UserAgent#cert) [Mojo::UserAgent] - Path to TLS certificate file, defaults to the value of the MOJO_CERT_FILE environment variable.
- MOJO_KEY_FILE [Mojo::UserAgent] - Path to TLS key file, defaults to the value of the MOJO_KEY_FILE environment variable.
- MOJO_CONNECT_TIMEOUT [Mojo::UserAgent] - Maximum amount of time in seconds establishing a connection may take before getting canceled, defaults to the value of the MOJO_CONNECT_TIMEOUT environment variable or 10.
- MOJO_MAX_REDIRECTS [Mojo::UserAgent] - Maximum number of redirects the user agent will follow before it fails, defaults to the value of the MOJO_MAX_REDIRECTS environment variable or 0.
- MOJO_REQUEST_TIMEOUT [Mojo::UserAgent] - Maximum amount of time in seconds establishing a connection, sending the request and receiving a whole response may take before getting canceled, defaults to the value of the MOJO_REQUEST_TIMEOUT environment variable or 0. Setting the value to 0 will allow the user agent to wait indefinitely. The timeout will reset for every followed redirect.
- MOJO_PROXY [Mojo::UserAgent, ojo] - Check environment variables HTTP_PROXY, http_proxy, HTTPS_PROXY, https_proxy, NO_PROXY and no_proxy for proxy information. Automatic proxy detection can be enabled with the MOJO_PROXY environment variable.
- MOJO_EXCEPTION_VERBOSE [Mojo::Exception] - Activate verbose rendering, defaults to the value of MOJO_EXCEPTION_VERBOSE environment variable or 0.
- MOJO_IOLOOP_DEBUG bool [Mojo::IOLoop] - You can set the MOJO_IOLOOP_DEBUG environment variable to get some advanced diagnostics information printed to STDERR.
- MOJO_EVENTEMITTER_DEBUG bool [Mojo::EventEmitter] - You can set the MOJO_EVENTEMITTER_DEBUG environment variable to get some advanced diagnostics information printed to STDERR.
- MOJO_DAEMON_DEBUG bool [Mojo::Server::Daemon] - You can set the MOJO_DAEMON_DEBUG environment variable to get some advanced diagnostics information printed to STDERR.
- MOJO_TEMPLATE_DEBUG bool [Mojo::Template] - You can set the MOJO_TEMPLATE_DEBUG environment variable to get some advanced diagnostics information printed to STDERR.
- MOJO_WEBSOCKET_DEBUG bool [Mojo::Transaction::WebSocket] - You can set the MOJO_WEBSOCKET_DEBUG environment variable to get some advanced diagnostics information printed to STDERR.
- MOJO_BASE_DEBUG bool [Mojo::Base] - You can set the MOJO_BASE_DEBUG environment variable to get some advanced diagnostics information printed to STDERR.
- MOJO_USERAGENT_DEBUG bool [Mojo::UserAgent] - You can set the MOJO_USERAGENT_DEBUG environment variable to get some advanced diagnostics information printed to STDERR.
- MOJO_REUSE private [Mojo::IOLoop::Server] - ?
- MOJO_EXE private [Mojolicious::Lite, Mojolicious::Plugin::Config] - executable
- MOJO_APP_LOADER private bool [Mojolicious::Commands] - ?
- PLACK_ENV [Mojolicious::Commands::detect] - detect PSGI (Plack)
- HARNESS_ACTIVE [Mojolicious::Commands] - test
- HARNESS_IS_VERBOSE [Test::Mojo] - test
for f in $(find $(perl -MMojo -e 'print map { $INC{$_} =~ s/Mojo.pm//; $INC{$_} } grep /Mojo.pm/, keys %INC') -name '*.pm' -path '*ojo*')
do
echo $f;
grep -n "MOJO_" $f;
done