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โ serializeaccept()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 onwrite()/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 is1000๐ค--emperor-max-throttleโ sets the max throttling level, in milliseconds, for badly behaved vassals. default is3 minutes--emperor-magic-execโ if a vassal's config file has the executable bit set, it prefixes that config file withexec://. 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โ usesclone()instead offork(), 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--inheritto do it--vassals-includeโ includes config templates into vassals' config, using--includeinstead 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--includeinstead 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 is60--mule-reload-mercyโ the maximum time, in seconds, a mule is allowed to take to reload/shutdown. default is60--exit-on-reloadโ forces an exit even if a reload was requested--die-on-termโ exits instead of doing a brutal reload onSIGTERM--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โ callswaitpid(-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 themax_requestsvalue of each worker--min-worker-lifetimeโ the number of seconds a worker must run before it can be reloaded. default is10--max-worker-lifetimeโ reloads workers after the specified amount of seconds. default is disabled--max-worker-lifetime-deltaโ adds(worker_id * delta)seconds to themax_worker_lifetimevalue 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 viaftok()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 is3 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 thelast_modified_attimestamp 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 achdir()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_rootandput_oldmust be separated with a space--pivot_rootโpivot_root()s into the specified directories.new_rootandput_oldmust 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 viainitgroups()--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/nsas 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 thepost_jailhooks to actually run. jail era ๐--reforkโ do afork()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 beforeexec()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 beforeexec()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 beforeexec()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 beforeexec()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 forwait-for-interface.--wait-interfaceโ wait for the specified network interface to come up before running root hooks.--wait-interface-timeoutโ set the timeout forwait-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 forwait-for-interface.--wait-ifaceโ wait for the specified network interface to come up before running root hooks.--wait-iface-timeoutโ set the timeout forwait-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 forwait-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 forwait-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 specifiedfunction()beforeexec()ing the vassal.--call-as-vassal1โ call the specifiedfunction(char *)beforeexec()ing the vassal.--call-as-vassal3โ call the specifiedfunction(char *, uid_t, gid_t)beforeexec()ing the vassal.--call-as-emperorโ call the specifiedfunction()in the emperor after the vassal has been started.--call-as-emperor1โ call the specifiedfunction(char *)in the emperor after the vassal has been started.--call-as-emperor2โ call the specifiedfunction(char *, pid_t)in the emperor after the vassal has been started.--call-as-emperor4โ call the specifiedfunction(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โ setSO_SNDTIMEO.--socket-send-timeoutโ setSO_SNDTIMEO.--so-write-timeoutโ setSO_SNDTIMEO.--socket-write-timeoutโ setSO_SNDTIMEO.--socket-sndbufโ setSO_SNDBUF.--socket-rcvbufโ setSO_RCVBUF.--shutdown-socketsโ force callingshutdown()in addition toclose()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 forread()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.jsonfiles 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 rewritesSCRIPT_NAMEandPATH_INFOfor you. it's doing the most so you don't have to.--ignore-script-nameโ straight up ignoreSCRIPT_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 (default1) ๐--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 (default60seconds) โฐ--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 ofSCM_CREDENTIALSin 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 specifiedmodifier1when 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 forcert/key/client_cafiles in the directory you specify and create a sni/ssl context on demand.--sni-dir-ciphersโ set the ssl ciphers for thesni-diroption ๐--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โchownthose logfiles ๐--logfile-chmodโchmodthose 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โ callsabort()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 asSOCK_STREAM๐--log-master-req-streamโ create the master requests logpipe asSOCK_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 fromX-Forwarded-Forheader instead ofREMOTE_ADDR๐ต๏ธ
--master-as-rootโ leave master process running as root ๐--drop-after-initโ run privileges drop after plugin initialization, superseded bydrop-after-appsโฌ๏ธ--drop-after-appsโ run privileges drop after apps loading, superseded bymaster-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 onSERVER_NAMEvariable) ๐--vhost-hostโ enable virtualhosting mode (based onHTTP_HOSTvariable) ๐
routing time bestie, this is where it gets good ๐ฃ๏ธโจ
--routeโ add a route--route-hostโ add a route based onHostheader--route-uriโ add a route based onREQUEST_URI--route-qsโ add a route based onQUERY_STRING--route-remote-addrโ add a route based onREMOTE_ADDR--route-user-agentโ add a route based onHTTP_USER_AGENT--route-remote-userโ add a route based onREMOTE_USER--route-refererโ add a route based onHTTP_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 onHostheader--final-route-uriโ add a final route based onREQUEST_URI--final-route-qsโ add a final route based onQUERY_STRING--final-route-remote-addrโ add a final route based onREMOTE_ADDR--final-route-user-agentโ add a final route based onHTTP_USER_AGENT--final-route-remote-userโ add a final route based onREMOTE_USER--final-route-refererโ add a final route based onHTTP_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 onHostheader--error-route-uriโ add an error route based onREQUEST_URI--error-route-qsโ add an error route based onQUERY_STRING--error-route-remote-addrโ add an error route based onREMOTE_ADDR--error-route-user-agentโ add an error route based onHTTP_USER_AGENT--error-route-remote-userโ add an error route based onREMOTE_USER--error-route-refererโ add an error route based onHTTP_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 onHostheader--response-route-uriโ add a response route based onREQUEST_URI--response-route-qsโ add a response route based onQUERY_STRING--response-route-remote-addrโ add a response route based onREMOTE_ADDR--response-route-user-agentโ add a response route based onHTTP_USER_AGENT--response-route-remote-userโ add a response route based onREMOTE_USER--response-route-refererโ add a response route based onHTTP_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 requestedDOCUMENT_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-mapbut 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 theExpiresheader based on content type โณ--static-expires-type-mtimeโ sets theExpiresheader based on content type and file mtime โณ๐--static-expiresโ sets theExpiresheader based on a filename regexp ๐--static-expires-mtimeโ sets theExpiresheader based on a filename regexp and file mtime ๐๐--static-expires-uriโ sets theExpiresheader based on aREQUEST_URIregexp ๐๐--static-expires-uri-mtimeโ sets theExpiresheader based on aREQUEST_URIregexp and file mtime ๐๐๐--static-expires-path-infoโ sets theExpiresheader based on aPATH_INFOregexp ๐๐ฃ๏ธ--static-expires-path-info-mtimeโ sets theExpiresheader based on aPATH_INFOregexp 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 HTTPRangeheader ๐ serving partial file energy--offload-threadsโ sets the number of offload threads to spawn (per-worker, default0) ๐งต--offload-threadโ sets the number of offload threads to spawn (per-worker, default0) ๐งต 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โ disablessendfile()and relies on boringread()/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 is700) ๐--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โ enablesPROXY1protocol support (only for http parsers) ๐ญ--reuse-portโ enables theREUSE_PORTflag on the socket (BSD only) ๐๐--tcp-fast-openโ enables theTCP_FASTOPENflag on TCP sockets with the specified qlen value ๐--tcp-fastopenโ enables theTCP_FASTOPENflag on TCP sockets with the specified qlen value ๐ (spelling twin, no hyphen needed bestie)--tcp-fast-open-clientโ usessendto(..., MSG_FASTOPEN, ...)instead ofconnect()if supported ๐โก๏ธ๐--tcp-fastopen-clientโ usessendto(..., MSG_FASTOPEN, ...)instead ofconnect()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 thepost_forkhook) ๐โโ๏ธโจ--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-daemonbut the daemon runs only on the legion lord node ๐๐งฒ--legion-smart-attach-daemonโ same as--smart-attach-daemonbut the daemon runs only on the legion lord node ๐๐ง ๐งฒ--legion-smart-attach-daemon2โ same as--smart-attach-daemon2but 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โ theattach-daemonkeyval 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 auwsgibinary (fordata://usage) ๐ค--printโ simple print ๐จ๏ธ--iprintโ simple print (immediate version) ๐จ๏ธโก--exitโ forcesexit()of the instance ๐ช๐ bye bestie--cflagsโ reports uWSGICFLAGS(useful for building external plugins) ๐ ๏ธ--dot-hโ dumps theuwsgi.hused for building the core (useful for building external plugins) ๐๐ ๏ธ--config-pyโ dumps theuwsgiconfig.pyused 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
- ubuntu stonking: uwsgi-plugin-graylog2 2.0.31-6build1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms