SOLVED - Nginx Config Ubuntu 16.04

Thanks so much for your support Paul.
It’s really very much appreciated.

I tried to put the external IP address instead of 127.0.0.1.
No difference in behavior though.

I am not getting through to mattermost. So there is nothing in the logs.

if I try ti access via browser

chat.mydomain.com

then nothing happens at all.

If I try

chat.mydomain.com:8065

then I can connect to the running Mattermost service directly and it works.

Something is wrong with the nginx config which leads all requests into the eternal emptyness…

I guess it has something to do with the websocket thing, which I do not understand yet.

Or could it have to do something with permissions and the mattermost user?

I am completely lost here.