Go back

Enbling SSL for your NocoDB vm

This section describes how to enable SSL for your NocoDB VM.

Make sure you have port 443 opened for this VM. Before running below steps on your existing NocoDB instance, we recommend to create the backup image of the VM and then continue with the below setup. This way you can revert back to your existing instance if anything goes wrong.

  • The VM needs an Elastic IP/Static IP to function correctly. If the Elastic IP/Static IP is not provided then the IP will change on VM reboot and you will not be able to access the NocoDB UI. To allocate an Elastic IP please follow Getting Started Guide of respective cloud platforms.

AWS Getting Started Guide

GCP Getting Started Guide

Azure Getting Started Guide

  • Only for Azure Platform, you can create and use DNS name to access NocoDB UI securely over HTTPS using https://dns_name_of_the_vm.

  • To do so, on Azure, click on “Configure DNS” link on your VM’s details page. It will open a new page. Provide the DNS name and save the changes. We will need this DNS name when editing nocodb-ssl-setup.sh file in the below steps.

    /img/aws/nocodb/configure-dns-azure.png

    /img/aws/nocodb/save-dns-on-azure.png

  • The VM comes with the setup files to enable SSL. Connect via Terminal, switch to ubuntu user if not logged in using the ubuntu user already, and navigate to setup directory. Here you can see different nocodb setup files.

   cd /home/ubuntu/setup

/img/aws/nocodb/nocodb-setup-files.png

  • To enable SSL , open nocodb-ssl-setup.sh file, press ‘i’ to enable insert mode. Set CONFIG_SSL_ENABLED=“Y” at line No 23. Save the file by pressing ESC key followed by :wq.
sudo vi /home/ubuntu/setup/nocodb-ssl-setup.sh

/img/aws/nocodb/open-nocodb-ssl-setup-file.png

Note: If you have a valid domain associated to this VM like we explained above for Azure platform, then you can set the Domain Name to CONFIG_DOMAIN_NAME="" global variable at line No 22. This way you can access the NocoDB UI using Domain Name.

/img/aws/nocodb/edit-nocodb-ssl-setup-file.png

  • Once the file is saved, run below command. It will prompt for a password of root user. Provide the password of root user. If the password is not set then please run passwd set command first and then run the ssl script command.
sudo passwd root

/img/aws/nocodb/update-root-user-passwd.png

su -c 'bash <(cat /home/ubuntu/setup/nocodb-ssl-setup.sh) <(mktemp)'

/img/aws/nocodb/run-ssl-script-with-root.png

  • Wait for the script to complete, then reboot the VM. Once VM is up and running again, access the NocoDB UI using https://public_ip

Accept the Browser Warning. It will take you to the SignUp page.

/img/aws/nocodb/accept-browser-warning-with-root.png

/img/aws/nocodb/running-nocodb-on-https.png

/img/aws/nocodb/nocodb-dashboard.png

Go back