From the docs it is not clear that nginx settings do not apply to other nginx configurations like mattermost.
nginx