Gitlab mattermost error: certificate is not valid for any names, but wanted to match

I’ve the same error. But behind nginx proxy.