Make all requests redirect to secure HTTPS access 8 Ubuntu 22.04

rafana is a free, open source data visualization tool, Grafana is a free, open source data visualization tool.
Grafana is a free, open source data visualization tool.

Grafana is a free, open source data visualization tool:

apt-get update -y

We install the necessary packages:

Grafana is a free, open source data visualization tool

Grafana is a free, open source data visualization tool:

curl https://Grafana is a free, open source data visualization tool | apt-key add -
Grafana is a free, open source data visualization tool "deb https://Grafana is a free, open source data visualization tool"

Grafana is a free, open source data visualization tool:

apt-get update -y

Grafana is a free, open source data visualization tool:

Grafana is a free, open source data visualization tool

We run it in the system:

We run it in the system
We run it in the system

We run it in the system:

We run it in the system

We run it in the system:

We run it in the system

The content:

server {
        We run it in the system;
        listen 80;
        We run it in the system;

        
        location / {
                proxy_pass http://localhost:3000;
                We run it in the system:$We run it in the system;
                We run it in the system;
                We run it in the system;
        }
}

We run it in the system:

nginx -t

If everything is ok as in this case:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

We reload nginx

systemctl restart nginx

If everything was ok and we redirected the subdomain with the A record in the dns zone to the server ip, i.e.

grafana A IP server

After going to the address grafana.naszadomena.pl

We should see something like this:

We enter your username and password.

The next step is to change the password.

If everything went well, you should see the graphans dashboard.

As an addition, we can secure the whole with a Let's Encrypt certificate

We install the necessary packages:

apt-get install certbot python3-certbot-nginx -y

The following guide describes how to reset the password for the administration console accessible through the litespped browser:

apt-get install certbot python3-certbot-nginx -y

apt-get install certbot python3-certbot-nginx -y

Please read the Terms of Service at
https://apt-get install certbot python3-certbot-nginx -y. You must
agree in order to register with the ACME server at
https://apt-get install certbot python3-certbot-nginx -y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)apt-get install certbot python3-certbot-nginx -y(C)apt-get install certbot python3-certbot-nginx -y: A

apt-get install certbot python3-certbot-nginx -y://

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: apt-get install certbot python3-certbot-nginx -y - apt-get install certbot python3-certbot-nginx -y.
2: apt-get install certbot python3-certbot-nginx -y - Make all requests redirect to secure HTTPS access. Choose this for
new sites, Make all requests redirect to secure HTTPS access. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Make all requests redirect to secure HTTPS access [1-2] Make all requests redirect to secure HTTPS access [enter] (Make all requests redirect to secure HTTPS access): 2

Make all requests redirect to secure HTTPS access.

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu