Update 01-en.md

This commit is contained in:
Christoph 2024-01-30 08:08:21 +01:00 committed by GitHub
parent f3b53c7ce1
commit acdfed2206
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,19 +8,7 @@ author_name: Konstantin Protzen
author_url: https://github.com/cuzimbisonratte
author_image: https://github.com/cuzimbisonratte.png
author_bio:
tags:
[
linux,
ubuntu,
uptime,
auth,
authentication,
security,
two-factor,
two,
factor,
second,
]
tags: [linux, ubuntu, uptime, auth, authentication, security, two-factor, two, factor, second]
netcup_product_url: https://www.netcup.de/bestellen/produkt.php?produkt=2991
language: en
available_languages: [en, de]
@ -109,9 +97,9 @@ Follow these steps to install and configure MariaDB:
# Step 7 - Setup of nginx
2. If asked for your password, enter it and press `Enter`.
3. Enter `mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old && nano /etc/nginx/nginx.conf` to edit the nginx standard config file.
4. Paste the following code into the file:
1. If asked for your password, enter it and press `Enter`.
2. Enter `mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old && nano /etc/nginx/nginx.conf` to edit the nginx standard config file.
3. Paste the following code into the file:
```nginx
user www-data;
@ -123,38 +111,38 @@ http {
error_log /dev/stderr;
server {
listen 80;
server_name 2fauth.example.com;
root /var/www/2fauth/public;
listen 80;
server_name 2fauth.example.com;
root /var/www/2fauth/public;
index index.php;
index index.php;
charset utf-8;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
}
```
5. Exit the file by pressing `Ctrl + X`, then `Y` and then `Enter`.
6. Now you can reload nginx by entering `systemctl reload nginx`.
4. Exit the file by pressing `Ctrl + X`, then `Y` and then `Enter`.
5. Now you can reload nginx by entering `systemctl reload nginx`.
# Step 8 - Setting up HTTPS