Giving external arguments to nginx.conf (and using if statements) -
how can make system-specific variations in nginx.conf file, can use same file on both - development machine , on live server?
nginx.conf pseudo example:
if system == mac user _www; else # ubuntu user www-data; end - can set environment variables in bash
nginx.confcan read? if so, syntax reading these? - can use
nginx -goption give nginx arguments? if so, command line syntax this, , syntax reading arguments insidenginx.conf?
sorry asking, manual sort of vague on these topics.
nginx.conf seems defy idea of if's , variables, ended writing small script converts dev.conf live.conf part of deployment. differences minuscule, necessary.
Comments
Post a Comment