Alright, that makes sense, and should be able to be changed then as well!
In the config.json
file, for your Mattermost instance, you should be able to change the URL of the server to whatever you wish it to be, by editing the site URL, as you can see from my configuration file, I have set it to run on the domain mattermost.example.tld
"SiteURL": "https://mattermost.example.tld",
"WebsocketURL": "",
"LicenseFileLocation": "",
"ListenAddress": ":8065",
"ConnectionSecurity": "",
"TLSCertFile": "",
"TLSKeyFile": "",
"TLSMinVer": "1.2",
"TLSStrictTransport": false,
"TLSStrictTransportMaxAge": 63072000,
"TLSOverwriteCiphers": [],
"UseLetsEncrypt": false,
"LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
"Forward80To443": false,
"TrustedProxyIPHeader": [
"X-Forwarded-For",
"X-Real-IP"
],
It’s important to note that if you are running your Mattermost instance over HTTPS, you do need to change the protocol in your config.json
file to reflect this as well.
For example, if I wanted to run my Mattermost instance on example.tld/mattermost
, and serve it over HTTPS, I would change the SiteUrl to be https://example.tld/mattermost
, save the file, and then restart my instance.
Does this help, I hope?