Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a full list of uwsgi's mythical magic variables?

Tags:

uwsgi

I'm trying to do some quite complicated configuration with uwsgi. I'm trying to make things easier on myself in the long run and naturally, in doing so, I'm making things as hard as could possibly be right now.

Anyway, I'm looking for the complete list of magic variables. The ones I've been able to find on the Emperor page are not what I'm after. The page (and others) suggests there's a larger dictionary of magic out there. Somewhere.

%v = the vassals dir
%o = the original config filename as specified in the command line
%p = the absolute path of the config filename
%s = the filename of the config file
%d = the absolute path of the directory containing the config file
%e = the extension of the config file
%n = the filename without extension
like image 400
Oli Avatar asked Sep 14 '12 01:09

Oli


2 Answers

The uwsgi docs seem to have been updated since the time this question was asked. Here is a link to a longer list of magic variables:

http://uwsgi-docs.readthedocs.org/en/latest/Configuration.html#magicvars

like image 111
101010 Avatar answered Oct 02 '22 04:10

101010


the only missing variable is %c that reports he name of the directory containing the config file:

/foo/bar/test/one.ini will return 'test'

like image 40
roberto Avatar answered Oct 02 '22 02:10

roberto