How do I "set uwsgi install" with an alternate build config?
I am trying to install uWSGI using pip to deploy a Django project:
$ pip install uwsgi
[...]
################# uWSGI configuration #################
pcre = False
kernel = Linux
malloc = libc
execinfo = False
ifaddrs = True
ssl = True
zlib = True
locking = pthread_mutex
plugin_dir = .
timer = timerfd
yaml = embedded
json = False
filemonitor = inotify
routing = False
debug = False
capabilities = False
xml = expat
event = epoll
############## end of uWSGI configuration #############
[...]
I can see that the build config is displayed with some options that I would like to change.
-
ssl
(done in nginx, I don't want the binary touwsgi
reference OpenSSL) - For a development machine, I would like to enable
routing
andpcre
for a quick setup of the built-in HTTP server.
How to do this with pip install uwsgi
?
source to share
The configuration process checks for an environment variable UWSGI_PROFILE_OVERRIDE
that can override these configurations. It consists of pairs key=value
separated by a ;
(semicolon) symbol . The values true
and false
should be lowercase, which turned me off first.
So you can try UWSGI_PROFILE_OVERRIDE=ssl=false;routing=true;pcre=true
However, there are many automatic feature detections out there, so it might happen that it complains about libraries when you try to enable options.
source to share