Description


# Description

I add SSL to the Grafana web server to ensure all traffic is encrypted between the server and web browser.

I use LetsEncrypt by following the Certbot (opens new window) instructions.

For Web Server software, I choose Nginx

For Operating system, I choose Ubuntu 20.04 LTS

I then SSH onto my new Grafana server,

I enter these commands

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo apt-get update
1
2
3
4
复制代码

then install Certbot with the Nginx option

Copied to clipboard

sudo apt-get install certbot python3-certbot-nginx
1
复制代码

then run

Copied to clipboard

sudo certbot --nginx
1
复制代码

Follow the prompts, and enter the domain name you want to secure,

After completion, you should then be able to now visit your Grafana server using the url

https://YOUR-DOMAIN-NAME

Note that after running Certbot, it has changed the settings of your Nginx configuration file you created earlier. You can see those changes by using the cat command.

cat /etc/nginx/sites-enabled/YOUR-DOMAIN-NAME
1
复制代码
最近更新
01
生命短暂,犹如露珠消散,人们在奔波中寻求答案。
03-09
02
人生天地之间,若白驹过隙,忽然而已。
05-06
表情 | 预览
Code -1: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc. [N/A GET https://pum3vmup.api.lncld.net/1.1/classes/Comment]
Powered By Valine
v1.3.6