uWSGI manual on static files serving states that:
You can specify multiple
--static-mapoptions, even for the same mountpoint.
--static-map /images=/var/www/img --static-map /images=/var/www/img2 --static-map /images=/var/www/img3
The file will be searched in each directory until it’s found, or if it’s not, the request will be managed by your app.
I'm looking for a way to pass multiple options through env var like this:
UWSGI_STATIC_MAP="/images/=/var/www/img1/" UWSGI_STATIC_MAP="/images/=/var/www/img2/" UWSGI_STATIC_MAP="/images/=/var/www/img3/"
but, of course, var values will be overwritten, so there must be some syntax for one-shot declaration (or not).
Documentation about configuring uWSGI via env vars is rather scarce and most information I found is in this tutorial on caktusgroup.com, which states that "uWSGI is almost entirely configurable through environment variables".
Any help/hint appreciated.