From 3ce62f13e22f538b0581332bf95809fb1b64b49e Mon Sep 17 00:00:00 2001 From: Arsen Date: Sat, 30 May 2026 22:19:02 +0500 Subject: [PATCH] small fixes --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5ab8153..7c1e477 100755 --- a/README.md +++ b/README.md @@ -2,12 +2,10 @@ Site and chat-robot constructor for the Svoboda typography # Installation - Before process any command think about **what it does** and whether the **paths** are specified correctly
- ## NGINX -### **Create the NGINX server**
+### Create the NGINX server You can copy an example of the server file from here: `/examples/nginx/pechatalka.conf`
I prefer to rename nginx config files to domain names. For example: `pechatalka.kodorvan.tech`
@@ -20,17 +18,17 @@ You can copy an example of the server file from here: `/examples/nginx/pechatalk 5.1 Make sure that NGINX does not throw errors, otherwise proceed to step №3 or to the instructions for generate a TLS/SSL certificate
6. `sudo service nginx restart`
-### **Add mime-type recognition for javascript modules**
-Edit the file `/etc/nginx/mime.types`

+### Add mime-type recognition for javascript modules +Edit the file: `/etc/nginx/mime.types`
**From:** `application/javascript js;`
**To:** `application/javascript js mjs;` -### **Generate a TLS/SSL sertificate** (via [certbot](http://certbot.eff.org/) for [ubuntu](https://ubuntu.com/))
+### Generate a TLS/SSL sertificate (via [certbot](http://certbot.eff.org/) for [ubuntu](https://ubuntu.com/)) 1. `sudo apt install certbot python3-certbot-nginx`
2. `sudo certbot certonly --nginx`
The **domain** must already be **bound** to the **IP-address** of the server by `CNAME`, `A` or `AAAA` record -### **Set up firewall rules for HTTP and HTTPS requests** (for [ubuntu](https://ubuntu.com/))
+### Set up firewall rules for HTTP and HTTPS requests (for [ubuntu](https://ubuntu.com/)) 1. `sudo ufw allow "NGINX Full"`
1.1. Make sure that the port for SSH connection is open
2. `sudo ufw allow 22`