UWSGI_GRAYLOG2(1)

๐Ÿ’– UWSGI_GRAYLOG2(1) ๐Ÿ’–

okay bestie, welcome to uwsgi_graylog2 โ€” it's a User Command, section 1 of the manual, and it's literally the whole uwsgi-core situation. no cap.


โœจ NAME โœจ

uwsgi_graylog2 โ€” a fast (pure C), self-healing, developer-friendly WSGI server ๐Ÿฆ‹

like. she's fast, she's in C, she heals herself, and she's nice to developers. main character energy fr fr ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

uwsgi-core [options...]

that's it. that's the whole vibe. you just throw options at her and she goes ๐Ÿ‘‘


๐ŸŽ€ DESCRIPTION ๐ŸŽ€

okay so this is the big one โ€” a whole buffet of options. every single one matters, so i'm giving you all of them, no skipping, periodt. ๐Ÿ’–

  • -s, --socket โ€” bind to the specified UNIX/TCP socket using default protocol ๐Ÿซถ
  • -s, --uwsgi-socket โ€” bind to the specified UNIX/TCP socket using uwsgi protocol
  • --suwsgi-socket โ€” bind to the specified UNIX/TCP socket using uwsgi protocol over SSL ๐Ÿ”’
  • --ssl-socket โ€” bind to the specified UNIX/TCP socket using uwsgi protocol over SSL
  • --http-socket โ€” bind to the specified UNIX/TCP socket using HTTP protocol
  • --http-socket-modifier1 โ€” force the specified modifier1 when using HTTP protocol
  • --http-socket-modifier2 โ€” force the specified modifier2 when using HTTP protocol
  • --http11-socket โ€” bind to the specified UNIX/TCP socket using HTTP 1.1 (Keep-Alive) protocol โœจ
  • --https-socket โ€” bind to the specified UNIX/TCP socket using HTTPS protocol
  • --https-socket-modifier1 โ€” force the specified modifier1 when using HTTPS protocol
  • --https-socket-modifier2 โ€” force the specified modifier2 when using HTTPS protocol
  • --fastcgi-socket โ€” bind to the specified UNIX/TCP socket using FastCGI protocol
  • --fastcgi-nph-socket โ€” bind to the specified UNIX/TCP socket using FastCGI protocol (nph mode)
  • --fastcgi-modifier1 โ€” force the specified modifier1 when using FastCGI protocol
  • --fastcgi-modifier2 โ€” force the specified modifier2 when using FastCGI protocol
  • --scgi-socket โ€” bind to the specified UNIX/TCP socket using SCGI protocol
  • --scgi-nph-socket โ€” bind to the specified UNIX/TCP socket using SCGI protocol (nph mode)
  • --scgi-modifier1 โ€” force the specified modifier1 when using SCGI protocol
  • --scgi-modifier2 โ€” force the specified modifier2 when using SCGI protocol
  • --raw-socket โ€” bind to the specified UNIX/TCP socket using RAW protocol
  • --raw-modifier1 โ€” force the specified modifier1 when using RAW protocol
  • --raw-modifier2 โ€” force the specified modifier2 when using RAW protocol
  • --puwsgi-socket โ€” bind to the specified UNIX/TCP socket using persistent uwsgi protocol (puwsgi)
  • --protocol โ€” force the specified protocol for default sockets
  • --socket-protocol โ€” force the specified protocol for default sockets
  • --shared-socket โ€” create a shared socket for advanced jailing or ipc ๐Ÿ”ฅ
  • --undeferred-shared-socket โ€” create a shared socket for advanced jailing or ipc (undeferred mode)
  • -p, --processes โ€” spawn the specified number of workers/processes
  • -p, --workers โ€” spawn the specified number of workers/processes
  • --thunder-lock โ€” serialize accept() usage (if possible) โšก
  • -t, --harakiri โ€” set harakiri timeout
  • --harakiri-verbose โ€” enable verbose mode for harakiri
  • --harakiri-graceful-timeout โ€” interval between graceful harakiri attempt and a sigkill
  • --harakiri-graceful-signal โ€” use this signal instead of sigterm for graceful harakiri attempts
  • --harakiri-queue-threshold โ€” only trigger harakiri if queue is greater than this threshold
  • --harakiri-no-arh โ€” do not enable harakiri during after-request-hook
  • --no-harakiri-arh โ€” do not enable harakiri during after-request-hook
  • --no-harakiri-after-req-hook โ€” do not enable harakiri during after-request-hook
  • --backtrace-depth โ€” set backtrace depth
  • --mule-harakiri โ€” set harakiri timeout for mule tasks
  • -x, --xmlconfig โ€” load config from xml file
  • -x, --xml โ€” load config from xml file
  • --config โ€” load configuration using the pluggable system ๐Ÿงฉ
  • --fallback-config โ€” re-exec uwsgi with the specified config when exit code is 1
  • --strict โ€” enable strict mode (placeholder cannot be used)
  • --skip-zero โ€” skip check of file descriptor 0
  • --skip-atexit โ€” skip atexit hooks (ignored by the master)
  • --skip-atexit-teardown โ€” skip atexit teardown (ignored by the master)
  • -S, --set โ€” set a placeholder or an option
  • --set-placeholder โ€” set a placeholder
  • --set-ph โ€” set a placeholder
  • --get โ€” print the specified option value and exit
  • --declare-option โ€” declare a new uWSGI custom option
  • --declare-option2 โ€” declare a new uWSGI custom option (non-immediate)
  • --resolve โ€” place the result of a dns query in the specified placeholder, sytax: placeholder=name (immediate option)
  • --for โ€” (opt logic) for cycle
  • --for-glob โ€” (opt logic) for cycle (expand glob)
  • --for-times โ€” (opt logic) for cycle (expand the specified num to a list starting from 1)
  • --for-readline โ€” (opt logic) for cycle (expand the specified file to a list of lines)
  • --endfor โ€” (opt logic) end for cycle
  • --end-for โ€” (opt logic) end for cycle
  • --if-opt โ€” (opt logic) check for option
  • --if-not-opt โ€” (opt logic) check for option
  • --if-env โ€” (opt logic) check for environment variable
  • --if-not-env โ€” (opt logic) check for environment variable
  • --ifenv โ€” (opt logic) check for environment variable
  • --if-reload โ€” (opt logic) check for reload
  • --if-not-reload โ€” (opt logic) check for reload
  • --if-hostname โ€” (opt logic) check for hostname
  • --if-not-hostname โ€” (opt logic) check for hostname
  • --if-hostname-match โ€” (opt logic) try to match hostname against a regular expression
  • --if-not-hostname-match โ€” (opt logic) try to match hostname against a regular expression
  • --if-exists โ€” (opt logic) check for file/directory existence
  • --if-not-exists โ€” (opt logic) check for file/directory existence
  • --ifexists โ€” (opt logic) check for file/directory existence
  • --if-plugin โ€” (opt logic) check for plugin
  • --if-not-plugin โ€” (opt logic) check for plugin
  • --ifplugin โ€” (opt logic) check for plugin
  • --if-file โ€” (opt logic) check for file existence
  • --if-not-file โ€” (opt logic) check for file existence
  • --if-dir โ€” (opt logic) check for directory existence
  • --if-not-dir โ€” (opt logic) check for directory existence
  • --ifdir โ€” (opt logic) check for directory existence
  • --if-directory โ€” (opt logic) check for directory existence
  • --endif โ€” (opt logic) end if
  • --end-if โ€” (opt logic) end if
  • --blacklist โ€” set options blacklist context
  • --end-blacklist โ€” clear options blacklist context
  • --whitelist โ€” set options whitelist context
  • --end-whitelist โ€” clear options whitelist context
  • --ignore-sigpipe โ€” do not report (annoying) SIGPIPE ๐Ÿ™ˆ
  • --ignore-write-errors โ€” do not report (annoying) write()/writev() errors
  • --write-errors-tolerance โ€” set the maximum number of allowed write errors (default: no tolerance)
  • --write-errors-exception-only โ€” only raise an exception on write errors giving control to the app itself
  • --disable-write-exception โ€” disable exception generation on write()/writev()
  • --inherit โ€” use the specified file as config template
  • --include โ€” include the specified file as immediate configuration
  • --inject-before โ€” inject a text file before the config file (advanced templating)
  • --inject-after โ€” inject a text file after the config file (advanced templating)
  • -d, --daemonize โ€” daemonize uWSGI ๐Ÿ‘ป
  • --daemonize2 โ€” daemonize uWSGI after app loading
  • --stop โ€” stop an instance
  • --reload โ€” reload an instance
  • --pause โ€” pause an instance
  • --suspend โ€” suspend an instance
  • --resume โ€” resume an instance
  • --connect-and-read โ€” connect to a socket and wait for data from it
  • --extract โ€” fetch/dump any supported address to stdout
  • -l, --listen โ€” set the socket listen queue size
  • -v, --max-vars โ€” set the amount of internal iovec/vars structures
  • --max-apps โ€” set the maximum number of per-worker applications
  • -b, --buffer-size โ€” set internal buffer size
  • -m, --memory-report โ€” enable memory report
  • --profiler โ€” enable the specified profiler
  • -c, --cgi-mode โ€” force CGI-mode for plugins supporting it
  • -a, --abstract-socket โ€” force UNIX socket in abstract mode (Linux only) ๐Ÿง
  • -C, --chmod-socket โ€” chmod-socket
  • -C, --chmod โ€” chmod-socket
  • --chown-socket โ€” chown unix sockets
  • --umask โ€” set umask
  • --freebind โ€” put socket in freebind mode
  • --map-socket โ€” map sockets to specific workers
  • -T, --enable-threads โ€” enable threads (stub option this is true by default)
  • --no-threads-wait โ€” do not wait for threads cancellation on quit/reload
  • --auto-procname โ€” automatically set processes name to something meaningful
  • --procname-prefix โ€” add a prefix to the process names
  • --procname-prefix-spaced โ€” add a spaced prefix to the process names
  • --procname-append โ€” append a string to process names
  • --procname โ€” set process names
  • --procname-master โ€” set master process name
  • -i, --single-interpreter โ€” do not use multiple interpreters (where available)
  • --need-app โ€” exit if no app can be loaded
  • -M, --master โ€” enable master process ๐Ÿ‘‘
  • --honour-stdin โ€” do not remap stdin to /dev/null
  • --emperor โ€” run the Emperor
  • --emperor-proxy-socket โ€” force the vassal to became an Emperor proxy
  • --emperor-wrapper โ€” set a binary wrapper for vassals
  • --emperor-wrapper-override โ€” set a binary wrapper for vassals to try before the default one
  • --emperor-wrapper-fallback โ€” set a binary wrapper for vassals to try as a last resort
  • --emperor-nofollow โ€” do not follow symlinks when checking for mtime
  • --emperor-procname โ€” set the Emperor process name
  • --emperor-freq โ€” set the Emperor scan frequency (default 3 seconds) โฐ
  • --emperor-required-heartbeat โ€” set the Emperor tolerance about heartbeats ๐Ÿ’“
  • --emperor-curse-tolerance โ€” set the Emperor tolerance about cursed vassals

bestie that's part 1 and there's so much more coming, don't go anywhere ๐Ÿ’œ

okay so we're still in flag city, and honestly? it's giving โœจpower userโœจ โ€” every one of these is a real knob you can turn. no skips, no summarising, we go through ALL of them ๐Ÿ’–

  • --emperor-pidfile โ€” drops the Emperor's pid into the file you name. your emperor, pinned down in writing ๐Ÿ‘‘
  • --emperor-tyrant โ€” puts the Emperor into Tyrant mode. dramatic name, dramatic energy, that's the vibe
  • --emperor-tyrant-nofollow โ€” when it's checking for uid/gid in Tyrant mode, it will not follow symlinks. no sneaky link-hopping, bestie ๐Ÿ™ˆ
  • --emperor-stats โ€” spins up the Emperor stats server
  • --emperor-stats-server โ€” same thing, spins up the Emperor stats server
  • --early-emperor โ€” spawns the emperor as soon as possible. impatient queen, we respect it ๐Ÿ’…
  • --emperor-broodlord โ€” runs the emperor in BroodLord mode
  • --emperor-throttle โ€” sets the throttling level, in milliseconds, for vassals that are being badly behaved. default is 1000 ๐Ÿ˜ค
  • --emperor-max-throttle โ€” sets the max throttling level, in milliseconds, for badly behaved vassals. default is 3 minutes
  • --emperor-magic-exec โ€” if a vassal's config file has the executable bit set, it prefixes that config file with exec://. magic, literally โœจ
  • --emperor-on-demand-extension โ€” looks for a text file named vassal name + extension that contains the on demand socket name
  • --emperor-on-demand-ext โ€” same deal: looks for a text file named vassal name + extension that contains the on demand socket name
  • --emperor-on-demand-directory โ€” turns on on demand mode, binding to the unix socket inside the directory you specify, named like the vassal plus .socket
  • --emperor-on-demand-dir โ€” yep, same: enables on demand mode, binds to the unix socket in the specified directory, named like the vassal plus .socket
  • --emperor-on-demand-exec โ€” uses the output of the command you specify as the on demand socket name, and the vassal name gets passed in as the one and only argument
  • --emperor-extra-extension โ€” allows the extension you specify in the Emperor, and the vassal gets called with --config
  • --emperor-extra-ext โ€” allows the specified extension in the Emperor, vassal called with --config
  • --emperor-no-blacklist โ€” disables the Emperor blacklisting subsystem. no more blacklist, gone, deleted ๐Ÿšซ
  • --emperor-use-clone โ€” uses clone() instead of fork(), passing along the unshare() flags you specify
  • --emperor-graceful-shutdown โ€” uses vassals' graceful shutdown during ragnarok ๐Ÿ˜ญ
  • --emperor-cap โ€” sets the vassals' capability
  • --vassals-cap โ€” sets the vassals' capability
  • --vassal-cap โ€” sets the vassals' capability
  • --imperial-monitor-list โ€” lists the enabled imperial monitors
  • --imperial-monitors-list โ€” lists the enabled imperial monitors
  • --vassals-inherit โ€” adds config templates to vassals' config, and it uses --inherit to do it
  • --vassals-include โ€” includes config templates into vassals' config, using --include instead of --inherit
  • --vassals-inherit-before โ€” adds config templates to vassals' config via --inherit, and it parses before the vassal file
  • --vassals-include-before โ€” includes config templates into vassals' config via --include instead of --inherit, parsing before the vassal file
  • --vassals-start-hook โ€” runs the command you specify before each vassal starts
  • --vassals-stop-hook โ€” runs the specified command after a vassal dies ๐Ÿ’€
  • --vassal-sos โ€” asks the emperor for reinforcements when it's overloaded
  • --vassal-sos-backlog โ€” asks the emperor for sos if the backlog queue has more items than the value you specify
  • --vassals-set โ€” automatically sets the option you specify (via --set) for every single vassal
  • --vassal-set โ€” same energy: automatically sets the specified option (via --set) for every vassal
  • --heartbeat โ€” announces healthiness to the emperor. "i'm alive bestie!!" ๐Ÿซถ
  • --reload-mercy โ€” the maximum time, in seconds, we wait for workers and other processes to die during reload/shutdown
  • --worker-reload-mercy โ€” the maximum time, in seconds, a worker is allowed to take to reload/shutdown. default is 60
  • --mule-reload-mercy โ€” the maximum time, in seconds, a mule is allowed to take to reload/shutdown. default is 60
  • --exit-on-reload โ€” forces an exit even if a reload was requested
  • --die-on-term โ€” exits instead of doing a brutal reload on SIGTERM
  • --force-gateway โ€” forces the spawn of the first registered gateway, with no master involved
  • -h, --help โ€” shows this help
  • -h, --usage โ€” shows this help
  • --print-sym โ€” prints the content of the binary symbol you specify
  • --print-symbol โ€” prints the content of the specified binary symbol
  • -r, --reaper โ€” calls waitpid(-1,...) after every request so zombies get cleaned up ๐ŸงŸ
  • -R, --max-requests โ€” reloads workers after the specified amount of managed requests
  • --max-requests-delta โ€” adds (worker_id * delta) to the max_requests value of each worker
  • --min-worker-lifetime โ€” the number of seconds a worker must run before it can be reloaded. default is 10
  • --max-worker-lifetime โ€” reloads workers after the specified amount of seconds. default is disabled
  • --max-worker-lifetime-delta โ€” adds (worker_id * delta) seconds to the max_worker_lifetime value of each worker
  • -z, --socket-timeout โ€” sets the internal sockets timeout
  • --no-fd-passing โ€” disables file descriptor passing
  • --locks โ€” creates the specified number of shared locks
  • --lock-engine โ€” sets the lock engine
  • --ftok โ€” sets the ipcsem key via ftok() so you dodge duplicates
  • --persistent-ipcsem โ€” does not remove ipcsem's on shutdown
  • -A, --sharedarea โ€” creates a raw shared memory area of the specified pages. note: it supports keyval too
  • --safe-fd โ€” does not close the file descriptor you specify
  • --fd-safe โ€” does not close the specified file descriptor
  • --cache โ€” creates a shared cache containing the given elements
  • --cache-blocksize โ€” sets the cache blocksize
  • --cache-store โ€” enables persistent cache to disk
  • --cache-store-sync โ€” sets the frequency of sync for the persistent cache
  • --cache-no-expire โ€” disables the auto sweep of expired items
  • --cache-expire-freq โ€” sets how often the cache sweeper scans. default is 3 seconds
  • --cache-report-freed-items โ€” constantly reports the cache item freed by the sweeper. use only for debug โš ๏ธ
  • --cache-udp-server โ€” binds the cache udp server (only used for set/update/delete) to the socket you specify
  • --cache-udp-node โ€” sends cache update/deletion to the cache udp server you specify
  • --cache-sync โ€” copies the whole content of another uWSGI cache server at server startup
  • --cache-use-last-modified โ€” updates the last_modified_at timestamp on every cache item modification. default is disabled
  • --add-cache-item โ€” adds an item into the cache
  • --load-file-in-cache โ€” loads a static file into the cache
  • --load-file-in-cache-gzip โ€” loads a static file into the cache, with gzip compression
  • --cache2 โ€” creates a new generation shared cache, using keyval syntax
  • --queue โ€” enables the shared queue
  • --queue-blocksize โ€” sets the queue blocksize
  • --queue-store โ€” enables persistent queue to disk
  • --queue-store-sync โ€” sets the frequency of sync for the persistent queue
  • -Q, --spooler โ€” runs a spooler on the directory you specify
  • --spooler-external โ€” maps spooler requests to a spooler directory managed by an external instance
  • --spooler-ordered โ€” tries to order the execution of spooler tasks
  • --spooler-chdir โ€” does a chdir() into the specified directory before each spooler task
  • --spooler-processes โ€” sets the number of processes for spoolers
  • --spooler-quiet โ€” does not be verbose with spooler tasks ๐Ÿคซ
  • --spooler-max-tasks โ€” sets the maximum number of tasks to run before recycling a spooler
  • --spooler-harakiri โ€” sets the harakiri timeout for spooler tasks
  • --spooler-frequency โ€” sets the spooler frequency
  • --spooler-freq โ€” sets the spooler frequency
  • --mule โ€” adds a mule
  • --mules โ€” adds the specified number of mules
  • --farm โ€” adds a mule farm ๐ŸŒพ
  • --mule-msg-size โ€” sets the mule message buffer size
  • --signal โ€” sends a uwsgi signal to a server
  • --signal-bufsize โ€” sets the buffer size for the signal queue
  • --signals-bufsize โ€” sets the buffer size for the signal queue
  • --signal-timer โ€” adds a timer. syntax: <signal> <seconds>
  • --timer โ€” adds a timer. syntax: <signal> <seconds>
  • --signal-rbtimer โ€” adds a redblack timer. syntax: <signal> <seconds>
  • --rbtimer โ€” adds a redblack timer. syntax: <signal> <seconds>
  • --rpc-max โ€” maximum number of rpc slots. default: 64
  • -L, --disable-logging โ€” disables request logging
  • --flock โ€” locks the file you specify before starting, and exits if it's already locked
  • --flock-wait โ€” locks the specified file before starting, and waits if it's already locked
  • --flock2 โ€” locks the specified file after logging/daemon setup, exits if it's locked
  • --flock-wait2 โ€” locks the specified file after logging/daemon setup, waits if it's locked
  • --pidfile โ€” creates a pidfile, and this happens before the privileges drop
  • --pidfile2 โ€” creates a pidfile, this time after the privileges drop
  • --safe-pidfile โ€” creates a safe pidfile, before the privileges drop
  • --safe-pidfile2 โ€” creates a safe pidfile, after the privileges drop
  • --chroot โ€” chroot()s into the directory you specify
  • --pivot-root โ€” pivot_root()s into the directories you specify. new_root and put_old must be separated with a space
  • --pivot_root โ€” pivot_root()s into the specified directories. new_root and put_old must be separated with a space
  • --uid โ€” setuids to the user/uid you specify
  • --gid โ€” setgids to the group/gid you specify
  • --add-gid โ€” adds the group id you specify to the process credentials
  • --immediate-uid โ€” setuids to the user/uid you specify, IMMEDIATELY โšก
  • --immediate-gid โ€” setgids to the group/gid you specify, IMMEDIATELY โšก
  • --no-initgroups โ€” disables the additional groups that get set via initgroups()
  • --cap โ€” sets the process capability
  • --unshare โ€” unshare()s part of the processes and drops it into a new namespace
  • --unshare2 โ€” unshare()s part of the processes and drops it into a new namespace, but after the rootfs change
  • --setns-socket โ€” exposes a unix socket that returns namespace fds from /proc/self/ns
  • --setns-socket-skip โ€” skips the entry you specify when sending setns file descriptors
  • --setns-skip โ€” skips the specified entry when sending setns file descriptors
  • --setns โ€” joins a namespace that was created by an external uWSGI instance
  • --setns-preopen โ€” opens /proc/self/ns as soon as possible and caches the fds

still more flag lore coming bestie, don't you dare scroll away ๐Ÿฆ‹

  • --jailed โ€” mark this instance as jailed, which forces the post_jail hooks to actually run. jail era ๐Ÿ’…
  • --refork โ€” do a fork() again after privileges drop. useful for jailing systems ๐Ÿงš
  • --re-fork โ€” same as --refork: fork() again after privileges drop. jailing systems stay fed ๐Ÿซถ
  • --refork-as-root โ€” fork() again before privileges drop. useful for jailing systems โœจ
  • --re-fork-as-root โ€” yep, same: fork() again before privileges drop. jailing systems love this one ๐Ÿ‘‘
  • --refork-post-jail โ€” fork() again after jailing. useful for jailing systems ๐Ÿ”ฅ
  • --re-fork-post-jail โ€” twin energy: fork() again after jailing. useful for jailing systems ๐Ÿ’–

  • --hook-asap โ€” run the specified hook as soon as possible. no waiting bestie โณ
  • --hook-pre-jail โ€” run the specified hook before jailing.
  • --hook-post-jail โ€” run the specified hook after jailing.
  • --hook-in-jail โ€” run the specified hook in jail after initialization.
  • --hook-as-root โ€” run the specified hook before privileges drop.
  • --hook-as-user โ€” run the specified hook after privileges drop.
  • --hook-as-user-atexit โ€” run the specified hook before app exit and reload.
  • --hook-pre-app โ€” run the specified hook before app loading.
  • --hook-post-app โ€” run the specified hook after app loading.
  • --hook-post-fork โ€” run the specified hook after each fork.
  • --hook-accepting โ€” run the specified hook after each worker enters the accepting phase.
  • --hook-accepting1 โ€” run the specified hook after the first worker enters the accepting phase.
  • --hook-accepting-once โ€” run the specified hook after each worker enters the accepting phase (once per-instance).
  • --hook-accepting1-once โ€” run the specified hook after the first worker enters the accepting phase (once per instance).
  • --hook-master-start โ€” run the specified hook when the Master starts. main character energy ๐Ÿ‘‘
  • --hook-touch โ€” run the specified hook when the specified file is touched (syntax: <file> <action>).
  • --hook-emperor-start โ€” run the specified hook when the Emperor starts.
  • --hook-emperor-stop โ€” run the specified hook when the Emperor sends a stop message.
  • --hook-emperor-reload โ€” run the specified hook when the Emperor sends a reload message.
  • --hook-emperor-lost โ€” run the specified hook when the Emperor connection is lost.
  • --hook-as-vassal โ€” run the specified hook before exec()ing the vassal.
  • --hook-as-emperor โ€” run the specified hook in the emperor after the vassal has been started.
  • --hook-as-mule โ€” run the specified hook in each mule.
  • --hook-as-gateway โ€” run the specified hook in each gateway.
  • --after-request-hook โ€” run the specified function/symbol after each request.
  • --after-request-call โ€” run the specified function/symbol after each request.

  • --exec-asap โ€” run the specified command as soon as possible.
  • --exec-pre-jail โ€” run the specified command before jailing.
  • --exec-post-jail โ€” run the specified command after jailing.
  • --exec-in-jail โ€” run the specified command in jail after initialization.
  • --exec-as-root โ€” run the specified command before privileges drop.
  • --exec-as-user โ€” run the specified command after privileges drop.
  • --exec-as-user-atexit โ€” run the specified command before app exit and reload.
  • --exec-pre-app โ€” run the specified command before app loading.
  • --exec-post-app โ€” run the specified command after app loading.
  • --exec-as-vassal โ€” run the specified command before exec()ing the vassal.
  • --exec-as-emperor โ€” run the specified command in the emperor after the vassal has been started.

  • --mount-asap โ€” mount filesystem as soon as possible.
  • --mount-pre-jail โ€” mount filesystem before jailing.
  • --mount-post-jail โ€” mount filesystem after jailing.
  • --mount-in-jail โ€” mount filesystem in jail after initialization.
  • --mount-as-root โ€” mount filesystem before privileges drop.
  • --mount-as-vassal โ€” mount filesystem before exec()ing the vassal.
  • --mount-as-emperor โ€” mount filesystem in the emperor after the vassal has been started.

  • --umount-asap โ€” unmount filesystem as soon as possible.
  • --umount-pre-jail โ€” unmount filesystem before jailing.
  • --umount-post-jail โ€” unmount filesystem after jailing.
  • --umount-in-jail โ€” unmount filesystem in jail after initialization.
  • --umount-as-root โ€” unmount filesystem before privileges drop.
  • --umount-as-vassal โ€” unmount filesystem before exec()ing the vassal.
  • --umount-as-emperor โ€” unmount filesystem in the emperor after the vassal has been started.

  • --wait-for-interface โ€” wait for the specified network interface to come up before running root hooks.
  • --wait-for-interface-timeout โ€” set the timeout for wait-for-interface.
  • --wait-interface โ€” wait for the specified network interface to come up before running root hooks.
  • --wait-interface-timeout โ€” set the timeout for wait-for-interface.
  • --wait-for-iface โ€” wait for the specified network interface to come up before running root hooks.
  • --wait-for-iface-timeout โ€” set the timeout for wait-for-interface.
  • --wait-iface โ€” wait for the specified network interface to come up before running root hooks.
  • --wait-iface-timeout โ€” set the timeout for wait-for-interface.
  • --wait-for-fs โ€” wait for the specified filesystem item to appear before running root hooks.
  • --wait-for-file โ€” wait for the specified file to appear before running root hooks.
  • --wait-for-dir โ€” wait for the specified directory to appear before running root hooks.
  • --wait-for-mountpoint โ€” wait for the specified mountpoint to appear before running root hooks.
  • --wait-for-fs-timeout โ€” set the timeout for wait-for-fs/file/dir.
  • --wait-for-socket โ€” wait for the specified socket to be ready before loading apps.
  • --wait-for-socket-timeout โ€” set the timeout for wait-for-socket.

  • --call-asap โ€” call the specified function as soon as possible.
  • --call-pre-jail โ€” call the specified function before jailing.
  • --call-post-jail โ€” call the specified function after jailing.
  • --call-in-jail โ€” call the specified function in jail after initialization.
  • --call-as-root โ€” call the specified function before privileges drop.
  • --call-as-user โ€” call the specified function after privileges drop.
  • --call-as-user-atexit โ€” call the specified function before app exit and reload.
  • --call-pre-app โ€” call the specified function before app loading.
  • --call-post-app โ€” call the specified function after app loading.
  • --call-as-vassal โ€” call the specified function() before exec()ing the vassal.
  • --call-as-vassal1 โ€” call the specified function(char *) before exec()ing the vassal.
  • --call-as-vassal3 โ€” call the specified function(char *, uid_t, gid_t) before exec()ing the vassal.
  • --call-as-emperor โ€” call the specified function() in the emperor after the vassal has been started.
  • --call-as-emperor1 โ€” call the specified function(char *) in the emperor after the vassal has been started.
  • --call-as-emperor2 โ€” call the specified function(char *, pid_t) in the emperor after the vassal has been started.
  • --call-as-emperor4 โ€” call the specified function(char *, pid_t, uid_t, gid_t) in the emperor after the vassal has been started.

  • --ini โ€” load config from ini file.
  • -y|--yaml โ€” load config from yaml file.
  • -y|--yml โ€” load config from yaml file.
  • -j|--json โ€” load config from json file.
  • -j|--js โ€” load config from json file.

  • --weight โ€” weight of the instance (used by clustering/lb/subscriptions).
  • --auto-weight โ€” set weight of the instance (used by clustering/lb/subscriptions) automatically.
  • --no-server โ€” force no-server mode.
  • --command-mode โ€” force command mode.
  • --no-defer-accept โ€” disable deferred-accept on sockets.
  • --tcp-nodelay โ€” enable TCP NODELAY on each request.
  • --so-keepalive โ€” enable TCP KEEPALIVEs.
  • --so-send-timeout โ€” set SO_SNDTIMEO.
  • --socket-send-timeout โ€” set SO_SNDTIMEO.
  • --so-write-timeout โ€” set SO_SNDTIMEO.
  • --socket-write-timeout โ€” set SO_SNDTIMEO.
  • --socket-sndbuf โ€” set SO_SNDBUF.
  • --socket-rcvbuf โ€” set SO_RCVBUF.
  • --shutdown-sockets โ€” force calling shutdown() in addition to close() when sockets are destroyed.
  • --limit-as โ€” limit processes address space/vsz.
  • --limit-nproc โ€” limit the number of spawnable processes.
  • --reload-on-as โ€” reload if address space is higher than specified megabytes.
  • --reload-on-rss โ€” reload if rss memory is higher than specified megabytes.
  • --evil-reload-on-as โ€” force the master to reload a worker if its address space is higher than specified megabytes.
  • --evil-reload-on-rss โ€” force the master to reload a worker if its rss memory is higher than specified megabytes.
  • --mem-collector-freq โ€” set the memory collector frequency when evil reloads are in place.
  • --reload-on-fd โ€” reload if the specified file descriptor is ready.
  • --brutal-reload-on-fd โ€” brutal reload if the specified file descriptor is ready.
  • --ksm โ€” enable Linux KSM.
  • --pcre-jit โ€” enable pcre jit (if available).
  • --never-swap โ€” lock all memory pages avoiding swapping.
  • --touch-reload โ€” reload uWSGI if the specified file is modified/touched.
  • --touch-workers-reload โ€” trigger reload of (only) workers if the specified file is modified/touched.
  • --touch-mules-reload โ€” reload mules if the specified file is modified/touched.
  • --touch-spoolers-reload โ€” reload spoolers if the specified file is modified/touched.
  • --touch-chain-reload โ€” trigger chain reload if the specified file is modified/touched.
  • --touch-logrotate โ€” trigger logrotation if the specified file is modified/touched.
  • --touch-logreopen โ€” trigger log reopen if the specified file is modified/touched.
  • --touch-exec โ€” run command when the specified file is modified/touched (syntax: file command).
  • --touch-signal โ€” the moment that file gets modified/touched, we send a signal. syntax: file signal ๐Ÿ’ซ
  • --fs-reload โ€” filesystem object changes? graceful reload, bestie. no drama, just vibes.
  • --fs-brutal-reload โ€” same energy but make it brutal: the fs object changes and we hard reload. no soft launch here ๐Ÿ”ฅ
  • --fs-signal โ€” raise a uwsgi signal when the specified filesystem object is modified. syntax: file signal
  • --check-mountpoint โ€” if a filesystem is no longer reachable, the instance gets destroyed. literally perfect for reliable Fuse management ๐Ÿ’€
  • --mountpoint-check โ€” same thing, different name: instance gets destroyed if a filesystem is no more reachable. useful for reliable Fuse management ๐Ÿซถ
  • --check-mount โ€” you guessed it. filesystem unreachable โ†’ instance destroyed. reliable Fuse management stays winning โœจ
  • --mount-check โ€” the fourth twin ๐Ÿ‘ฏ filesystem gone โ†’ instance destroyed. useful for reliable Fuse management.
  • --propagate-touch โ€” over-engineering option for systems with flaky signal management. it's giving "we tried everything" ๐Ÿ˜ญ
  • --limit-post โ€” limit the request body. put a lil fence around it ๐Ÿšง
  • --no-orphans โ€” workers get auto-killed if the master dies. > โš ๏ธ fair warning: this can be dangerous for availability. protect the vibes responsibly.
  • --prio โ€” set processes/threads priority โญ
  • --cpu-affinity โ€” set cpu affinity ๐Ÿงš
  • --post-buffering โ€” set the size in bytes after which stuff buffers to disk instead of memory.
  • --post-buffering-bufsize โ€” set the buffer size for read() when you're in post buffering mode.
  • --body-read-warning โ€” sets the amount of allowed memory allocation (in megabytes) for a request body before it starts printing a warning at you ๐Ÿ‘€
  • --upload-progress โ€” creates .json files in the directory you name, while a file upload is happening ๐Ÿ“
  • --no-default-app โ€” no falling back to the default app. we don't do backup plans ๐Ÿ’…
  • --manage-script-name โ€” automatically rewrites SCRIPT_NAME and PATH_INFO for you. it's doing the most so you don't have to.
  • --ignore-script-name โ€” straight up ignore SCRIPT_NAME. iconic.
  • --catch-exceptions โ€” reports the exception as http output. > ๐Ÿšจ discouraged, only use it for testing, fr fr.
  • --reload-on-exception โ€” an exception gets raised โ†’ the worker reloads ๐Ÿ”„
  • --reload-on-exception-type โ€” reload a worker when a specific exception type is raised.
  • --reload-on-exception-value โ€” reload a worker when a specific exception value is raised.
  • --reload-on-exception-repr โ€” reload a worker when a specific exception type+value (language-specific) is raised.
  • --exception-handler โ€” add an exception handler ๐Ÿ›Ÿ
  • --enable-metrics โ€” turns the metrics subsystem on ๐Ÿ“Š
  • --metric โ€” add a custom metric ๐Ÿค
  • --metric-threshold โ€” add a metric threshold/alarm ๐Ÿšจ
  • --metric-alarm โ€” add a metric threshold/alarm (yes, same thing, we love an alias)
  • --alarm-metric โ€” add a metric threshold/alarm (third time's the charm โœจ)
  • --metrics-dir โ€” export metrics as text files into the directory you specify.
  • --metrics-dir-restore โ€” restores the last value taken from the metrics dir.
  • --metric-dir โ€” export metrics as text files to the specified directory ๐Ÿ“
  • --metric-dir-restore โ€” restore last value taken from the metrics dir.
  • --metrics-no-cores โ€” stops generating cores-related metrics. no cores, no problem.
  • --udp โ€” run the udp server on the address you give it ๐Ÿ“ก
  • --stats โ€” enable the stats server on the specified address ๐Ÿ“ˆ
  • --stats-server โ€” enable the stats server on the specified address. same energy, different spelling.
  • --stats-http โ€” prefixes the stats server json output with http headers.
  • --stats-minified โ€” minifies the statistics json output. small and cute ๐ŸŽ€
  • --stats-min โ€” minify statistics json output (the short king edition).
  • --stats-push โ€” push the stats json to the destination you name ๐Ÿš€
  • --stats-pusher-default-freq โ€” set the default frequency of stats pushers.
  • --stats-pushers-default-freq โ€” set the default frequency of stats pushers (plural gang ๐ŸŒˆ)
  • --stats-no-cores โ€” disable generation of cores-related stats.
  • --stats-no-metrics โ€” keeps metrics out of the stats output entirely ๐Ÿ™ˆ
  • --multicast โ€” subscribe to the specified multicast group ๐Ÿ“ป
  • --multicast-ttl โ€” set multicast ttl โณ
  • --multicast-loop โ€” set multicast loop (default 1) ๐Ÿ”
  • --master-fifo โ€” enable the master fifo ๐ŸŽ›๏ธ
  • --notify-socket โ€” enable the notification socket ๐Ÿ””
  • --subscription-notify-socket โ€” set the notification socket used for subscriptions.
  • --legion โ€” become a member of a legion ๐Ÿซก
  • --legion-mcast โ€” become a member of a legion (shortcut for multicast).
  • --legion-node โ€” add a node to a legion ๐ŸŒ
  • --legion-freq โ€” set the frequency of legion packets.
  • --legion-tolerance โ€” set the tolerance of the legion subsystem.
  • --legion-death-on-lord-error โ€” if one of the lord hooks fails, it declares itself a dead node for however many seconds you specify โ˜ ๏ธ
  • --legion-skew-tolerance โ€” set the clock skew tolerance of the legion subsystem (default 60 seconds) โฐ
  • --legion-lord โ€” the action to call on Lord election ๐Ÿ‘‘
  • --legion-unlord โ€” the action to call on Lord dismiss.
  • --legion-setup โ€” the action to call on legion setup ๐Ÿ› ๏ธ
  • --legion-death โ€” action to call on legion death (that's the shutdown of the instance) ๐Ÿ’€
  • --legion-join โ€” action to call on legion join (the first time quorum is reached) ๐ŸŽ‰
  • --legion-node-joined โ€” action to call when a new node joins the legion ๐Ÿซถ
  • --legion-node-left โ€” action to call when a node leaves the legion ๐Ÿ‘‹
  • --legion-quorum โ€” set the quorum of a legion ๐Ÿ—ณ๏ธ
  • --legion-scroll โ€” set the scroll of a legion ๐Ÿ“œ
  • --legion-scroll-max-size โ€” set max size of the legion scroll buffer.
  • --legion-scroll-list-max-size โ€” set max size of the legion scroll list buffer.
  • --subscriptions-sign-check โ€” set the digest algorithm and certificate directory for the secured subscription system ๐Ÿ”
  • --subscriptions-sign-check-tolerance โ€” set the maximum tolerance (in seconds) of clock skew for the secured subscription system.
  • --subscriptions-sign-skip-uid โ€” skips the signature check for the specified uid when unix sockets credentials are in play ๐Ÿ™ˆ
  • --subscriptions-credentials-check โ€” add a directory to search for subscriptions key credentials.
  • --subscriptions-use-credentials โ€” enable management of SCM_CREDENTIALS in subscriptions UNIX sockets.
  • --subscription-algo โ€” set the load balancing algorithm for the subscription system โš–๏ธ
  • --subscription-dotsplit โ€” tries to fall back to the next part (dot based) in the subscription key.
  • --subscribe-to โ€” subscribe to the specified subscription server ๐Ÿ“ฌ
  • --st โ€” subscribe to the specified subscription server (tiny name, big job).
  • --subscribe โ€” subscribe to the specified subscription server.
  • --subscribe2 โ€” subscribe to the specified subscription server using the advanced keyval syntax โœจ
  • --subscribe-freq โ€” send the subscription announce at the interval you specify.
  • --subscription-tolerance โ€” set tolerance for subscription servers.
  • --unsubscribe-on-graceful-reload โ€” forces the unsubscribe request even during a graceful reload. no ghost subs ๐Ÿ‘ป
  • --start-unsubscribed โ€” configure subscriptions but don't send them (super useful with master fifo).
  • --subscribe-with-modifier1 โ€” force the specified modifier1 when subscribing.
  • --snmp โ€” enable the embedded snmp server ๐Ÿงญ
  • --snmp-community โ€” set the snmp community string ๐Ÿ”‘
  • --ssl-verbose โ€” be verbose about SSL errors. spill the tea ๐Ÿต
  • --ssl-verify-depth โ€” set the maximum certificate verification depth.
  • --sni โ€” add an SNI-governed SSL context ๐Ÿฆ‹
  • --sni-dir โ€” check for cert/key/client_ca files in the directory you specify and create a sni/ssl context on demand.
  • --sni-dir-ciphers โ€” set the ssl ciphers for the sni-dir option ๐Ÿ”’
  • --ssl-enable3 โ€” enable SSLv3. > โš ๏ธ insecure, bestie. just so we're clear.
  • --ssl-enable-sslv3 โ€” enable SSLv3. > โš ๏ธ also insecure.
  • --ssl-enable-tlsv1 โ€” enable TLSv1. > โš ๏ธ insecure too ๐Ÿ™ˆ
  • --ssl-option โ€” set a raw ssl option (a numeric value, no vibes, just numbers).
  • --sni-regexp โ€” add an SNI-governed SSL context where the key is a regexp ๐Ÿง 
  • --ssl-tmp-dir โ€” store ssl-related temp files in the directory you specify.
  • --check-interval โ€” set the interval (in seconds) of master checks โฑ๏ธ
  • --forkbomb-delay โ€” sleep for the specified number of seconds when a forkbomb is detected ๐Ÿ’ฃ๐Ÿ˜ด
  • --binary-path โ€” force the binary path ๐Ÿ“
  • --privileged-binary-patch โ€” patch the uwsgi binary with a new command (before privileges drop) ๐Ÿฉน
  • --unprivileged-binary-patch โ€” patch the uwsgi binary with a new command (after privileges drop).
  • --privileged-binary-patch-arg โ€” patch the uwsgi binary with a new command and arguments (before privileges drop).
  • --unprivileged-binary-patch-arg โ€” patch the uwsgi binary with a new command and arguments (after privileges drop).
  • --async โ€” enable async mode with the number of cores you specify โšก
  • --max-fd โ€” set the maximum number of file descriptors. > ๐Ÿ”‘ requires root privileges.
  • --logto โ€” set the logfile/udp address ๐Ÿ“
  • --logto2 โ€” log to the specified file or udp address after privileges drop.
  • --log-format โ€” set an advanced format for request logging ๐ŸŽจ
  • --logformat โ€” set advanced format for request logging (the no-dash remix).
  • --logformat-strftime โ€” apply strftime to the logformat output ๐Ÿ“…
  • --log-format-strftime โ€” apply strftime to logformat output (dashed flavour).
  • --logfile-chown โ€” chown those logfiles ๐Ÿ‘‘
  • --logfile-chmod โ€” chmod those logfiles ๐Ÿ”ง
  • --log-syslog โ€” log to syslog ๐Ÿ“ฎ
  • --log-socket โ€” send logs to the specified socket.
  • --req-logger โ€” set/append a request logger ๐Ÿ“‹
  • --logger-req โ€” set/append a request logger (same thing, backwards name, still iconic).
  • --logger โ€” set/append a logger ๐Ÿชต
  • --logger-list โ€” list enabled loggers ๐Ÿ—’๏ธ
  • --loggers-list โ€” list enabled loggers (plural edition).
  • --threaded-logger โ€” offloads log writing to a thread ๐Ÿงต
  • --log-encoder โ€” add an item in the log encoder chain โ›“๏ธ
  • --log-req-encoder โ€” add an item in the log req encoder chain.
  • --log-drain โ€” drain (do not show) log lines matching the specified regexp ๐Ÿ•ณ๏ธ
  • --log-filter โ€” show only the log lines matching the specified regexp ๐Ÿ”
  • --log-route โ€” log to the specified named logger if the regexp applied on the logline matches ๐Ÿ›ฃ๏ธ
  • --log-req-route โ€” log requests to the specified named logger if the regexp applied on the logline matches.
  • --use-abort โ€” calls abort() on segfault/fpe. could be useful for generating a core dump ๐Ÿ’ฅ
  • --alarm โ€” create a new alarm. syntax: <alarm> <plugin:args> โฐโœจ
  • --alarm-cheap โ€” use the main alarm thread instead of spinning up dedicated threads for curl-based alarms ๐Ÿ’ธโœ‚๏ธ
  • --alarm-freq โ€” tune the anti-loop alarm system (default 3 seconds) โฐ
  • --alarm-fd โ€” raise the specified alarm when an fd is read for read (by default it reads 1 byte, set 8 for eventfd) ๐Ÿšจ
  • --alarm-segfault, --segfault-alarm โ€” raise the specified alarm when the segmentation fault handler is executed ๐Ÿ’€
  • --alarm-backlog, --backlog-alarm, --lq-alarm, --alarm-lq, --alarm-listen-queue, --listen-queue-alarm โ€” all six of these bad boys raise the specified alarm when the socket backlog queue is full ๐Ÿ˜ญ (the whole gang, one job)
  • --log-alarm, --alarm-log โ€” raise the specified alarm when a log line matches the specified regexp, syntax: <alarm>[,alarm...] <regexp> ๐Ÿšจ๐Ÿ“
  • --not-log-alarm, --not-alarm-log โ€” skip the specified alarm when a log line matches the specified regexp, syntax: <alarm>[,alarm...] <regexp> ๐Ÿ™ˆ
  • --alarm-list, --alarms-list โ€” list enabled alarms โœจ
  • --alarm-msg-size โ€” set the max size of an alarm message (default 8192) ๐Ÿ“

  • --log-master โ€” delegate logging to master process ๐Ÿ‘‘
  • --log-master-bufsize โ€” set the buffer size for the master logger. bigger log messages will be truncated โœ‚๏ธ
  • --log-master-stream โ€” create the master logpipe as SOCK_STREAM ๐ŸŒŠ
  • --log-master-req-stream โ€” create the master requests logpipe as SOCK_STREAM ๐ŸŒŠ
  • --log-reopen โ€” reopen log after reload ๐Ÿ”„
  • --log-truncate โ€” truncate log on startup ๐Ÿ—‘๏ธ
  • --log-maxsize โ€” set maximum logfile size ๐Ÿ“ฆ
  • --log-backupname โ€” set logfile name after rotation ๐ŸŒ€
  • --logdate, --log-date โ€” prefix logs with date or a strftime string ๐Ÿ“…
  • --log-prefix โ€” prefix logs with a string ๐Ÿท๏ธ
  • --log-zero โ€” log responses without body ๐Ÿซฅ
  • --log-slow โ€” log requests slower than the specified number of milliseconds ๐ŸŒ
  • --log-4xx โ€” log requests with a 4xx response ๐Ÿ˜ฌ
  • --log-5xx โ€” log requests with a 5xx response ๐Ÿ’€
  • --log-big โ€” log requests bigger than the specified size ๐Ÿ˜
  • --log-sendfile โ€” log sendfile requests ๐Ÿ“ค
  • --log-ioerror โ€” log requests with io errors ๐Ÿฉน
  • --log-micros โ€” report response time in microseconds instead of milliseconds โฑ๏ธ
  • --log-x-forwarded-for โ€” use the ip from X-Forwarded-For header instead of REMOTE_ADDR ๐Ÿ•ต๏ธ

  • --master-as-root โ€” leave master process running as root ๐Ÿ‘‘
  • --drop-after-init โ€” run privileges drop after plugin initialization, superseded by drop-after-apps โฌ‡๏ธ
  • --drop-after-apps โ€” run privileges drop after apps loading, superseded by master-as-root โฌ‡๏ธ
  • --force-cwd โ€” force the initial working directory to the specified value ๐Ÿ“
  • --binsh โ€” override /bin/sh (used by exec hooks, it always fallback to /bin/sh) ๐Ÿš
  • --chdir โ€” chdir to specified directory before apps loading ๐Ÿ“‚
  • --chdir2 โ€” chdir to specified directory after apps loading ๐Ÿ“‚
  • --lazy โ€” set lazy mode (load apps in workers instead of master) ๐Ÿ˜ด
  • --lazy-apps โ€” load apps in each worker instead of the master ๐Ÿ˜ด
  • --cheap โ€” set cheap mode (spawn workers only after the first request) ๐Ÿช™
  • --cheaper โ€” set cheaper mode (adaptive process spawning) ๐Ÿง 
  • --cheaper-initial โ€” set the initial number of processes to spawn in cheaper mode ๐Ÿ”ข
  • --cheaper-algo โ€” choose to algorithm used for adaptive process spawning ๐Ÿงฎ
  • --cheaper-step โ€” number of additional processes to spawn at each overload ๐Ÿชœ
  • --cheaper-overload โ€” increase workers after specified overload ๐Ÿ“ˆ
  • --cheaper-algo-list, --cheaper-algos-list, --cheaper-list โ€” list enabled cheapers algorithms ๐Ÿ“œ
  • --cheaper-rss-limit-soft โ€” don't spawn new workers if total resident memory usage of all workers is higher than this limit ๐Ÿ›‘
  • --cheaper-rss-limit-hard โ€” if total workers resident memory usage is higher try to stop workers ๐Ÿ›‘๐Ÿ’€
  • --idle โ€” set idle mode (put uWSGI in cheap mode after inactivity) ๐Ÿ’ค
  • --die-on-idle โ€” shutdown uWSGI when idle โšฐ๏ธ
  • --mount โ€” load application under mountpoint ๐Ÿช
  • --worker-mount โ€” load application under mountpoint in the specified worker or after workers spawn ๐Ÿช
  • --threads โ€” run each worker in prethreaded mode with the specified number of threads ๐Ÿงต
  • --thread-stacksize, --threads-stacksize, --thread-stack-size, --threads-stack-size โ€” set threads stacksize (four names, one vibe) ๐Ÿงต๐Ÿ“
  • --vhost โ€” enable virtualhosting mode (based on SERVER_NAME variable) ๐Ÿ 
  • --vhost-host โ€” enable virtualhosting mode (based on HTTP_HOST variable) ๐Ÿ 

routing time bestie, this is where it gets good ๐Ÿ›ฃ๏ธโœจ

  • --route โ€” add a route
  • --route-host โ€” add a route based on Host header
  • --route-uri โ€” add a route based on REQUEST_URI
  • --route-qs โ€” add a route based on QUERY_STRING
  • --route-remote-addr โ€” add a route based on REMOTE_ADDR
  • --route-user-agent โ€” add a route based on HTTP_USER_AGENT
  • --route-remote-user โ€” add a route based on REMOTE_USER
  • --route-referer โ€” add a route based on HTTP_REFERER
  • --route-label โ€” add a routing label (for use with goto) ๐Ÿท๏ธ
  • --route-if โ€” add a route based on condition
  • --route-if-not โ€” add a route based on condition (negate version) ๐Ÿ™ƒ
  • --route-run โ€” always run the specified route action

  • --final-route โ€” add a final route ๐Ÿ
  • --final-route-status โ€” add a final route for the specified status
  • --final-route-host โ€” add a final route based on Host header
  • --final-route-uri โ€” add a final route based on REQUEST_URI
  • --final-route-qs โ€” add a final route based on QUERY_STRING
  • --final-route-remote-addr โ€” add a final route based on REMOTE_ADDR
  • --final-route-user-agent โ€” add a final route based on HTTP_USER_AGENT
  • --final-route-remote-user โ€” add a final route based on REMOTE_USER
  • --final-route-referer โ€” add a final route based on HTTP_REFERER
  • --final-route-label โ€” add a final routing label (for use with goto) ๐Ÿท๏ธ
  • --final-route-if โ€” add a final route based on condition
  • --final-route-if-not โ€” add a final route based on condition (negate version) ๐Ÿ™ƒ
  • --final-route-run โ€” always run the specified final route action

  • --error-route โ€” add an error route ๐Ÿ’”
  • --error-route-status โ€” add an error route for the specified status
  • --error-route-host โ€” add an error route based on Host header
  • --error-route-uri โ€” add an error route based on REQUEST_URI
  • --error-route-qs โ€” add an error route based on QUERY_STRING
  • --error-route-remote-addr โ€” add an error route based on REMOTE_ADDR
  • --error-route-user-agent โ€” add an error route based on HTTP_USER_AGENT
  • --error-route-remote-user โ€” add an error route based on REMOTE_USER
  • --error-route-referer โ€” add an error route based on HTTP_REFERER
  • --error-route-label โ€” add an error routing label (for use with goto) ๐Ÿท๏ธ
  • --error-route-if โ€” add an error route based on condition
  • --error-route-if-not โ€” add an error route based on condition (negate version) ๐Ÿ™ƒ
  • --error-route-run โ€” always run the specified error route action

  • --response-route โ€” add a response route ๐Ÿ“ฌ
  • --response-route-status โ€” add a response route for the specified status
  • --response-route-host โ€” add a response route based on Host header
  • --response-route-uri โ€” add a response route based on REQUEST_URI
  • --response-route-qs โ€” add a response route based on QUERY_STRING
  • --response-route-remote-addr โ€” add a response route based on REMOTE_ADDR
  • --response-route-user-agent โ€” add a response route based on HTTP_USER_AGENT
  • --response-route-remote-user โ€” add a response route based on REMOTE_USER
  • --response-route-referer โ€” add a response route based on HTTP_REFERER
  • --response-route-label โ€” add a response routing label (for use with goto) ๐Ÿท๏ธ
  • --response-route-if โ€” add a response route based on condition
  • --response-route-if-not โ€” add a response route based on condition (negate version) ๐Ÿ™ƒ
  • --response-route-run โ€” always run the specified response route action

  • --router-list, --routers-list โ€” list enabled routers ๐Ÿ“‹
  • --error-page-403 โ€” add an error page (html) for managed 403 response ๐Ÿšซ
  • --error-page-404 โ€” add an error page (html) for managed 404 response ๐Ÿ”
  • --error-page-500 โ€” add an error page (html) for managed 500 response ๐Ÿ’ฅ

  • --websockets-ping-freq, --websocket-ping-freq โ€” set the frequency (in seconds) of websockets automatic ping packets ๐Ÿ“
  • --websockets-pong-tolerance, --websocket-pong-tolerance โ€” set the tolerance (in seconds) of websockets ping/pong subsystem ๐Ÿ“
  • --websockets-max-size, --websocket-max-size โ€” set the max allowed size of websocket messages (in Kbytes, default 1024) ๐Ÿ“ฆ
  • --chunked-input-limit โ€” set the max size of a chunked input part (default 1MB, in bytes) ๐Ÿ“
  • --chunked-input-timeout โ€” set default timeout for chunked input โณ

  • --clock โ€” set a clock source ๐Ÿ•ฐ๏ธ
  • --clock-list โ€” list enabled clocks ๐Ÿ•ฐ๏ธ๐Ÿ“‹
  • --clocks-list โ€” lists all the enabled clocks โฐ bonding time with your timers, bestie
  • --add-header โ€” automatically adds HTTP headers to your response, so you don't have to hand-write them like it's 2009 ๐Ÿ’…
  • --rem-header โ€” automatically removes the specified HTTP header from the response ๐Ÿ™ˆ poof, gone
  • --del-header โ€” automatically removes the specified HTTP header from the response, same energy as the above, just a different name ๐Ÿซถ
  • --collect-header โ€” stashes the specified response header into a request var (syntax: header var) ๐Ÿ’– grabbing receipts, but for headers
  • --response-header-collect โ€” stashes the specified response header into a request var (syntax: header var) ๐Ÿ’– same thing, twin names fr fr
  • --pull-header โ€” stashes the specified response header into a request var and yanks it out of the response (syntax: header var) โ€” stealing it for yourself and removing the evidence ๐Ÿ’€
  • --check-static โ€” checks for static files in the specified directory ๐Ÿ“
  • --check-static-docroot โ€” checks for static files in the requested DOCUMENT_ROOT ๐Ÿ  lowkey the vibe of "just look where it's supposed to be"
  • --static-check โ€” checks for static files in the specified directory โœจ (yes babe, same deal as --check-static)
  • --static-map โ€” maps a mountpoint to a static directory (or file) ๐Ÿ—บ๏ธ the classic
  • --static-map2 โ€” like --static-map but it completely appends the requested resource to the docroot ๐ŸŒธ no cap, slightly different behavior
  • --static-skip-ext โ€” skips the specified extension from static file checks ๐Ÿšซ๐Ÿ“„
  • --static-index โ€” searches for the specified file if a directory is requested ๐Ÿ” so like, index.html behavior but you pick the file
  • --static-safe โ€” skips security checks if the file is under the specified path ๐Ÿ˜ญ iconic but be careful babes
  • --static-cache-paths โ€” puts resolved paths in the uWSGI cache for the specified amount of seconds ๐Ÿง  a little memory moment
  • --static-cache-paths-name โ€” uses the specified cache for static paths ๐Ÿท๏ธ
  • --mimefile โ€” sets the mime types file path (default /etc/mime.types) ๐Ÿ“œ
  • --mime-file โ€” sets the mime types file path (default /etc/mime.types) ๐Ÿ“œ (yes, the same one, it's giving two spellings for the price of one)
  • --static-expires-type โ€” sets the Expires header based on content type โณ
  • --static-expires-type-mtime โ€” sets the Expires header based on content type and file mtime โณ๐Ÿ“…
  • --static-expires โ€” sets the Expires header based on a filename regexp ๐Ÿ”Ž
  • --static-expires-mtime โ€” sets the Expires header based on a filename regexp and file mtime ๐Ÿ”Ž๐Ÿ“…
  • --static-expires-uri โ€” sets the Expires header based on a REQUEST_URI regexp ๐Ÿ”Ž๐ŸŒ
  • --static-expires-uri-mtime โ€” sets the Expires header based on a REQUEST_URI regexp and file mtime ๐Ÿ”Ž๐ŸŒ๐Ÿ“…
  • --static-expires-path-info โ€” sets the Expires header based on a PATH_INFO regexp ๐Ÿ”Ž๐Ÿ›ฃ๏ธ
  • --static-expires-path-info-mtime โ€” sets the Expires header based on a PATH_INFO regexp and file mtime ๐Ÿ”Ž๐Ÿ›ฃ๏ธ๐Ÿ“…
  • --static-gzip โ€” if the supplied regexp matches the static file translation, it goes looking for a gzip version ๐Ÿ—œ๏ธโœจ
  • --static-gzip-all โ€” checks for a gzip version of all requested static files ๐Ÿ—œ๏ธ๐Ÿ”ฅ
  • --static-gzip-dir โ€” checks for a gzip version of all requested static files in the specified dir/prefix ๐Ÿ“‚๐Ÿ—œ๏ธ
  • --static-gzip-prefix โ€” checks for a gzip version of all requested static files in the specified dir/prefix ๐Ÿ“‚๐Ÿ—œ๏ธ (yep, same as --static-gzip-dir)
  • --static-gzip-ext โ€” checks for a gzip version of all requested static files with the specified ext/suffix ๐Ÿ—œ๏ธ๐Ÿท๏ธ
  • --static-gzip-suffix โ€” checks for a gzip version of all requested static files with the specified ext/suffix ๐Ÿ—œ๏ธ๐Ÿท๏ธ (twin of --static-gzip-ext, obviously)
  • --honour-range โ€” enables support for the HTTP Range header ๐Ÿ“ serving partial file energy
  • --offload-threads โ€” sets the number of offload threads to spawn (per-worker, default 0) ๐Ÿงต
  • --offload-thread โ€” sets the number of offload threads to spawn (per-worker, default 0) ๐Ÿงต same one, singular spelling era
  • --file-serve-mode โ€” sets the static file serving mode ๐Ÿฝ๏ธ
  • --fileserve-mode โ€” sets the static file serving mode ๐Ÿฝ๏ธ (again, same option, two names, we love an alias moment)
  • --disable-sendfile โ€” disables sendfile() and relies on boring read()/write() ๐Ÿฅฑ sometimes the old ways hit different
  • --check-cache โ€” checks for response data in the specified cache (leave it empty for the default cache) ๐Ÿ“ฆ๐Ÿ’–
  • --close-on-exec โ€” sets close-on-exec on connection sockets (could be required for spawning processes in requests) ๐Ÿ”’
  • --close-on-exec2 โ€” sets close-on-exec on server sockets (could be required for spawning processes in requests) ๐Ÿ” note it's server sockets this time babe
  • --mode โ€” sets uWSGI custom mode ๐ŸŽ›๏ธ main character mode selection
  • --env โ€” sets an environment variable ๐ŸŒ
  • --envdir โ€” loads a daemontools compatible envdir ๐Ÿ“‚๐ŸŒ
  • --early-envdir โ€” loads a daemontools compatible envdir ASAP โšก๐ŸŒ like immediately immediately
  • --unenv โ€” unsets an environment variable ๐Ÿ™…โ€โ™€๏ธ๐ŸŒ
  • --vacuum โ€” tries to remove all of the generated file/sockets ๐Ÿงน clean girl behavior
  • --file-write โ€” writes the specified content to the specified file (syntax: file=value) before privileges drop โœ๏ธ
  • --cgroup โ€” puts the processes in the specified cgroup ๐Ÿซ‚
  • --cgroup-opt โ€” sets a value in the specified cgroup option โš™๏ธ
  • --cgroup-dir-mode โ€” sets permission for the cgroup directory (default is 700) ๐Ÿ”
  • --namespace โ€” runs in a new namespace under the specified rootfs ๐ŸŒ€
  • --namespace-keep-mount โ€” keeps the specified mountpoint in your namespace ๐Ÿ“Œ
  • --ns โ€” runs in a new namespace under the specified rootfs ๐ŸŒ€ (same vibe as --namespace, shorter name slay)
  • --namespace-net โ€” adds a network namespace ๐ŸŒ
  • --ns-net โ€” adds a network namespace ๐ŸŒ (yes babes, another alias)
  • --enable-proxy-protocol โ€” enables PROXY1 protocol support (only for http parsers) ๐ŸŽญ
  • --reuse-port โ€” enables the REUSE_PORT flag on the socket (BSD only) ๐Ÿ”๐ŸŽ
  • --tcp-fast-open โ€” enables the TCP_FASTOPEN flag on TCP sockets with the specified qlen value ๐Ÿš€
  • --tcp-fastopen โ€” enables the TCP_FASTOPEN flag on TCP sockets with the specified qlen value ๐Ÿš€ (spelling twin, no hyphen needed bestie)
  • --tcp-fast-open-client โ€” uses sendto(..., MSG_FASTOPEN, ...) instead of connect() if supported ๐Ÿ“žโžก๏ธ๐Ÿš€
  • --tcp-fastopen-client โ€” uses sendto(..., MSG_FASTOPEN, ...) instead of connect() if supported ๐Ÿ“žโžก๏ธ๐Ÿš€ (same one, we're just collecting pokรฉmon at this point)
  • --zerg โ€” attaches to a zerg server ๐Ÿ› iconic name, no notes
  • --zerg-fallback โ€” falls back to normal sockets if the zerg server isn't available ๐Ÿ›โžก๏ธ๐Ÿ”Œ
  • --zerg-server โ€” enables the zerg server on the specified UNIX socket ๐Ÿ›๐Ÿ”Œ
  • --cron โ€” adds a cron task โฐ
  • --cron2 โ€” adds a cron task (key=val syntax) โฐ๐Ÿ”‘
  • --unique-cron โ€” adds a unique cron task โฐโœจ one of a kind
  • --cron-harakiri โ€” sets the maximum time (in seconds) we wait for a cron command to complete โณ๐Ÿ’€ it's giving patience limits
  • --legion-cron โ€” adds a cron task runnable only when the instance is a lord of the specified legion ๐Ÿ‘‘โฐ
  • --cron-legion โ€” adds a cron task runnable only when the instance is a lord of the specified legion ๐Ÿ‘‘โฐ (same thing, swapped word order, we love versatility)
  • --unique-legion-cron โ€” adds a unique cron task runnable only when the instance is a lord of the specified legion โฐโœจ๐Ÿ‘‘
  • --unique-cron-legion โ€” adds a unique cron task runnable only when the instance is a lord of the specified legion โฐโœจ๐Ÿ‘‘ (yes, another reorder, embrace it)
  • --loop โ€” selects the uWSGI loop engine ๐Ÿ”„
  • --loop-list โ€” lists the enabled loop engines ๐Ÿ“‹๐Ÿ”„
  • --loops-list โ€” lists the enabled loop engines ๐Ÿ“‹๐Ÿ”„ (plural era, same list)
  • --worker-exec โ€” runs the specified command as worker ๐Ÿƒโ€โ™€๏ธ
  • --worker-exec2 โ€” runs the specified command as worker (after the post_fork hook) ๐Ÿƒโ€โ™€๏ธโœจ
  • --attach-daemon โ€” attaches a command/daemon to the master process (the command has to not go in the background) ๐Ÿงฒ
  • --attach-control-daemon โ€” attaches a command/daemon to the master process (the command has to not go in the background), and when the daemon dies, the master dies too ๐Ÿ’€๐Ÿซ‚
  • --smart-attach-daemon โ€” attaches a command/daemon to the master process, managed by a pidfile (the command has to daemonize) ๐Ÿง ๐Ÿงฒ
  • --smart-attach-daemon2 โ€” attaches a command/daemon to the master process, managed by a pidfile (the command has to NOT daemonize) ๐Ÿง ๐Ÿงฒ๐Ÿšซ
  • --legion-attach-daemon โ€” same as --attach-daemon but the daemon runs only on the legion lord node ๐Ÿ‘‘๐Ÿงฒ
  • --legion-smart-attach-daemon โ€” same as --smart-attach-daemon but the daemon runs only on the legion lord node ๐Ÿ‘‘๐Ÿง ๐Ÿงฒ
  • --legion-smart-attach-daemon2 โ€” same as --smart-attach-daemon2 but the daemon runs only on the legion lord node ๐Ÿ‘‘๐Ÿง ๐Ÿงฒ
  • --daemons-honour-stdin โ€” does not change the stdin of external daemons to /dev/null ๐Ÿซถ keep the stdin babes
  • --attach-daemon2 โ€” the attach-daemon keyval variant (it supports smart modes too) ๐Ÿงฒ๐Ÿ”‘
  • --plugins โ€” loads uWSGI plugins ๐Ÿงฉ
  • --plugin โ€” loads uWSGI plugins ๐Ÿงฉ (just the singular flavor)
  • --need-plugins โ€” loads uWSGI plugins, and exits on error ๐Ÿงฉ๐Ÿšช
  • --need-plugin โ€” loads uWSGI plugins, and exits on error ๐Ÿงฉ๐Ÿšช (same, singular)
  • --plugins-dir โ€” adds a directory to the uWSGI plugin search path ๐Ÿ“‚๐Ÿงฉ
  • --plugin-dir โ€” adds a directory to the uWSGI plugin search path ๐Ÿ“‚๐Ÿงฉ (twin alert)
  • --plugins-list โ€” lists the enabled plugins ๐Ÿ“‹๐Ÿงฉ
  • --plugin-list โ€” lists the enabled plugins ๐Ÿ“‹๐Ÿงฉ (yes babe, plural/singular again, we're used to it now)
  • --autoload โ€” tries to automatically load plugins when unknown options are found ๐Ÿช„๐Ÿงฉ
  • --dlopen โ€” blindly loads a shared library ๐Ÿ™ˆ๐Ÿ“š icu, no thoughts, just vibes
  • --allowed-modifiers โ€” a comma separated list of allowed modifiers ๐Ÿ“
  • --remap-modifier โ€” remaps a request modifier from one id to another ๐Ÿ”€
  • --dump-options โ€” dumps the full list of available options ๐Ÿ“œ๐Ÿ’ฅ
  • --show-config โ€” shows the current config reformatted as ini ๐Ÿ“„โœจ
  • --binary-append-data โ€” returns the content of a resource to stdout, for appending to a uwsgi binary (for data:// usage) ๐Ÿ“ค
  • --print โ€” simple print ๐Ÿ–จ๏ธ
  • --iprint โ€” simple print (immediate version) ๐Ÿ–จ๏ธโšก
  • --exit โ€” forces exit() of the instance ๐Ÿšช๐Ÿ’€ bye bestie
  • --cflags โ€” reports uWSGI CFLAGS (useful for building external plugins) ๐Ÿ› ๏ธ
  • --dot-h โ€” dumps the uwsgi.h used for building the core (useful for building external plugins) ๐Ÿ“„๐Ÿ› ๏ธ
  • --config-py โ€” dumps the uwsgiconfig.py used for building the core (useful for building external plugins) ๐Ÿ“„๐Ÿ๐Ÿ› ๏ธ
  • --build-plugin โ€” builds a uWSGI plugin for the current binary ๐Ÿ”จ๐Ÿงฉ
  • --version โ€” prints the uWSGI version ๐Ÿ”ข
  • --response-headers-limit โ€” sets the response header maximum size (default: 64k) ๐Ÿ“

and that's a wrap on the whole options saga, bestie, we really read all of them ๐Ÿ’–โœจ

this page came straight out of the uwsgi_graylog2 manual, version 2.0.31-debian, dated July 2026 โ€” so if you're reading this in some other era, double-check that build babes ๐ŸŒธ๐Ÿฆ‹ and go forth and configure, you absolute icon ๐Ÿ‘‘๐Ÿ’…

๐Ÿ“ฆ where this page comes from