How can I make system-specific variations in my nginx.conf file, so I can use the same file on both - my development machine and on the live server?
nginx.conf pseudo example:
if system == mac then
user _www;
else # ubuntu
user www-data;
end
- Can I set environment variables in Bash that
nginx.confcan read? If so, what is the syntax for reading these? - Can I use the
nginx -goption to give nginx arguments? If so, what is the command line syntax for this, and the syntax for reading the arguments insidenginx.conf?
Sorry for asking, but the manual is sort of vague on these topics.