Navixy is using web server called "nginx". This article describes how to quickly install SSL certificate for nginx web server on any OS.
- Find configuration files for your sites. On linux they are typically in /etc/nginx/sites-enabled/ folder
- Change the listening port from 80 to 443, and add the following lines to each site's configuration, specifying the correct path to your fullchain certificate and key files.
ssl_certificate /etc/nginx/ssl/certificate.crt; ssl_certificate_key /etc/nginx/ssl/private.key; ssl on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m;
Here's an example for API site configuration:
server { listen 443 ssl; ## listen for ipv4 server_name api.domain.com; access_log /var/log/nginx/api.domain.com_ssl.access.log; client_max_body_size 20m; ssl_certificate /etc/nginx/ssl/certificate.crt; ssl_certificate_key /etc/nginx/ssl/private.key; ssl on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; location / { proxy_pass http://127.0.0.1:8084; } }
- Restart nginx web server. For linux
nginx -t && nginx -s reload
Ensure nginx doesn't give any error related to SSL.
- Next we need to tell Navixy to use HTTPS protocol instead of HTTP. Open the following files:
/var/www/panel-v2/PConfig.js
/var/www/pro-ui/Config.js
In both files, edit the parameter "apiRoot", changing "http" to "https":apiRoot: 'https://api.domain.com',
No need to restart Navixy services after this, the changes should take effect immidiately.
- In case the page is still trying to load over HTTP, clear your browser's cache