events{ ... } env BPM_SERVICE_HOST; env BPM_SERVICE_PORT;
set_by_lua $bpm_host 'return os.getenv("BPM_SERVICE_HOST")'; set_by_lua $bpm_port 'return os.getenv("BPM_SERVICE_PORT")';
local host=ngx.var.bpm_host
How can I use environment variables in Nginx.confnginx