Enabled proxy support. Added env flag to server cli command.