Directions are loose. Follow on screen directions appropriately.
- https://cloud.linode.com/linodes > Add a Linode
- Choose a Distribution > Images > Debian 10
- Generate an SSH Key if not present
$ ssh-keygen~ cat ~/.ssh/id_rsa.pub- Copy public key results
- Add SSH Key from local computer
- Label >
id_rsa - SSH Public Key >
- Create
The public IP Address of your linode can be found here.
# Replace IP Address with IP Address of Linode
$ ssh root@192.168.1.1
- SSH into your Linode as root.
$ apt-get update; apt-get install ca-certificates wget -y
$ rm unifi-latest.sh &> /dev/null; wget https://get.glennr.nl/unifi/install/install_latest/unifi-latest.sh && bash unifi-latest.sh
- SSH into your Linode as root.
$ sudo service unifi restart
$ sudo service unifi status
$ sudo service unifi start
$ sudo service unifi stop
The default port for UniFi is 8443. You can use a web broser and navigate to https://ip.of.your.server:8443 or https://mydomain.com:8443
- https://cloud.linode.com/domains > Add a Domain
- Select Master
- Domain > <yourdomain.com>
- SOA Email Address > youremail@mail.com
- Insert Default Records > Insert default records from one of my Linodes.
- Linode >
- Create
- https://cloud.linode.com/domains > Edit DNS Records
- Remove instances of mail server. They are not needed for unifi.
- SSH into your Linode as root.
$ sudo apt update
$ sudo apt install nginx
By default on Debian systems, Nginx server blocks configuration files are stored in /etc/nginx/sites-available directory, which are enabled through symbolic links to the /etc/nginx/sites-enabled/ directory.
SSH into your Linode as root and create a Nginx configuration file.
$ nano /etc/nginx/sites-available/unifi.conf
--------------------
server {
listen 80;
listen [::]:80;
server_name yourdomain.com;
location / {
proxy_pass https://192.168.1.1:8443/;
}
}
Create a symbolic link.
$ ln -s /etc/nginx/sites-available/unifi.conf /etc/nginx/sites-enabled/
Test the configuration.
$ sudo nginx -t
If there are no errors, the output will look like this:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Restart Nginx.
$ sudo systemctl restart nginx
You should now be able to browse to https://mydomain.com and see the UniFi SDM Controller login page.