Added proxy support (for nginx)