System console not enabled for admin user in mattermost 5.4.0

I had successfully set up mattermost 5.40 in Ubuntu 14.04 by following I could able to access system console if i access application via IP. But when i access the application via domain name, i could not see the system console for the admin user. Also, am getting "websocket_client.jsx:38 WebSocket connection to ‘ws://’ failed: Error during WebSocket handshake: ‘Connection’ header value must contain ‘Upgrade’ in the console . I had also configured nginx based on this note that
my nginx and mattermost application are in different server. Not sure it is because of this issue.

Hi @Farook,

The error you’re getting means that there are issues with the websocket connections - can you help take a look at our troubleshooting tips here for help: