I had to also add both hostnames in the same line to /etc/hosts
127.0.0.1 localhost
191.168.1.x mattermost.naneya.com gitlab.naneya.com mattermost gitlab
After that the certs worked as well
I had to also add both hostnames in the same line to /etc/hosts
127.0.0.1 localhost
191.168.1.x mattermost.naneya.com gitlab.naneya.com mattermost gitlab
After that the certs worked as well