How to set up a SiteURL for a Mattermost server

Posted July 7, 2020 1.1k views

I am setting up a Mattermost server for a 30 day trial on my droplet and a SiteURL is required for clients to connect to it.
They give an example of: “” but no details of exactly what’s required. I was hoping to use the IP address.

I’m a retired unix/linux programmer but I don’t have much sys admin experience except on my own computers.

Can I just set up hostname or set the dnsdomainname to something? Do I need to run a web server? Do I need to purchase a unique domain name? I’m trying to find the easiest, most simple way to try this out.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @ethorsen1

What I can also suggest you is to use our one-click install droplet for Mattermost via the marketplace page. You can check it here:

After you create a Mattermost One-Click Droplet, log in to it with your configured SSH key and follow the instructions for the initial setup. The installer will request the following information:

  • Fully-qualified Domain Name for the Droplet. This is not configured as part of the Droplet creation - you must point it to Droplet IP.
  • MySQL Mattermost Password
  • MySQL Root Password
  • (Optional) Email. Used for LetsEncrypt Registration. If set, a confirmation is requested before submitting to LetsEncrypt.Please configure a secure password for both MySQL accounts with a password manager of your choice and store them securely.

Note: If you are not using the LetsEncrypt integration, you’ll need to manually configure the NGINX config that is located at “/etc/nginx/sites-enabled/mattermost” to point to the correct certificates. Afterwards, restart NGINX with “sudo systemctl restart nginx”.

After you finished the set up steps, open your configured domain and create your administrator account. Follow the Mattermost documentation for Getting Started here:

Hope that helps!


  • Thanks, I might try that if I don’t get this to work. I recently got the Mattermost server to run without errors and I’m using the ip address as the SiteURL (http://ip address:port). That seems to work.

    I’d still like to know how to set up a domain name, but it looks like I can try it out without it for now.

    • Hi,

      You can try to modify the server configuration file and update the reference for the IP address with the domain name. You need to point the domain name to the droplet’s IP address first and then you’ll be good to go with the vhost change.

      Let me know how it goes.