[SOLVED] Nginx 502 error

After configuring SSL on Gitlab Omnibus Mattermost I get an nginx 502 error.

/var/log/gitlab/mattermost/current has this interesting line:

Error: Config.IsValid: Site name must be less than or equal to 30 characters.,

I have two questions:

  1. What does it mean by “site name”? Does it mean the external URL? That seems crazy but what else could it be?

  2. Does the 30 characters include . ? Because mine is 32 with the .'s

  3. Could this cause the error?

Okay I was stupid. This was the team site name not the URL. It comes up now.