i use nginx and mattermost.
and System console->Web Server->Test Live URL is failed.
tail -f logs/mattermost.log
{“level”:“info”,“ts”:1582182872.0400913,“caller”:“cors@v1.7.0/cors.go:356”,“msg”:“Actual request no headers added: origin 'https://xx.xxxx.com not allowed”,“source”:“cors”}
{“level”:“error”,“ts”:1582182902.040658,“caller”:“mlog/log.go:175”,“msg”:“This is not a valid live URL”,“path”:“/api/v4/site_url/test”,“request_id”:“7918j13tuig43ynupt7rqidjew”,“ip_addr”:“xxx.xxx.xxx.xxx”,“user_id”:“3izu85ofrf8hzjisecr8xbzzda”,“method”:“POST”,“err_where”:“testSiteURL”,“http_code”:400,“err_details”:“”}
Since the error complains that it is not a valid live URL, can you please confirm the URL that you are using to access Mattermost on your web / desktop app as well as the DNS resolution result either via nslookup or dig command?
Additionally, may I know if it is a public facing instance? If yes, can you share the URL here?
{"level":"debug","ts":1587087592.7783213,"caller":"web/handlers.go:85","msg":"Received HTTP request","method":"POST","url":"/api/v4/site_url/test","request_id":"iojeqhhz97dqxbsic8mor44auo"}
{"level":"error","ts":1587087593.2401292,"caller":"mlog/log.go:175","msg":"This is not a valid live URL","path":"/api/v4/site_url/test","request_id":"iojeqhhz97dqxbsic8mor44auo","ip_addr":"10.0.2.2","user_id":"p6djq1dupinx8qjsnqcs94zkbo","method":"POST","err_where":"testSiteURL","http_code":400,"err_details":""}
Looking into this deeper, I can see that we have an issue with the certificate:
The reason why the Test Live URL is failing is because of the server not publicly available over the internet. If you can run the following command and share the output, that will help me understand the structure of your instance better: