generated from mirzaev/pot-php
small fixes
This commit is contained in:
12
README.md
12
README.md
@@ -2,12 +2,10 @@
|
|||||||
Site and chat-robot constructor for the Svoboda typography
|
Site and chat-robot constructor for the Svoboda typography
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
Before process any command think about **what it does** and whether the **paths** are specified correctly<br>
|
Before process any command think about **what it does** and whether the **paths** are specified correctly<br>
|
||||||
|
|
||||||
|
|
||||||
## NGINX
|
## NGINX
|
||||||
### **Create the NGINX server**<br>
|
### Create the NGINX server
|
||||||
You can copy an example of the server file from here: `/examples/nginx/pechatalka.conf`<br>
|
You can copy an example of the server file from here: `/examples/nginx/pechatalka.conf`<br>
|
||||||
<small><i>I prefer to rename nginx config files to domain names. For example: `pechatalka.kodorvan.tech`</i></small><br>
|
<small><i>I prefer to rename nginx config files to domain names. For example: `pechatalka.kodorvan.tech`</i></small><br>
|
||||||
|
|
||||||
@@ -20,17 +18,17 @@ You can copy an example of the server file from here: `/examples/nginx/pechatalk
|
|||||||
<small>5.1 <i>Make sure that <b>NGINX does not throw errors</b>, otherwise proceed to step №3 or to the instructions for generate a TLS/SSL certificate</i></small><br>
|
<small>5.1 <i>Make sure that <b>NGINX does not throw errors</b>, otherwise proceed to step №3 or to the instructions for generate a TLS/SSL certificate</i></small><br>
|
||||||
6. `sudo service nginx restart`<br>
|
6. `sudo service nginx restart`<br>
|
||||||
|
|
||||||
### **Add mime-type recognition for javascript modules**<br>
|
### Add mime-type recognition for javascript modules
|
||||||
<small>Edit the file `/etc/nginx/mime.types`</small><br><br>
|
<small>Edit the file: `/etc/nginx/mime.types`</small><br>
|
||||||
**From:** `application/javascript js;`<br>
|
**From:** `application/javascript js;`<br>
|
||||||
**To:** `application/javascript js mjs;`
|
**To:** `application/javascript js mjs;`
|
||||||
|
|
||||||
### **Generate a TLS/SSL sertificate** (via [certbot](http://certbot.eff.org/) for [ubuntu](https://ubuntu.com/))<br>
|
### Generate a TLS/SSL sertificate (via [certbot](http://certbot.eff.org/) for [ubuntu](https://ubuntu.com/))
|
||||||
1. `sudo apt install certbot python3-certbot-nginx`<br>
|
1. `sudo apt install certbot python3-certbot-nginx`<br>
|
||||||
2. `sudo certbot certonly --nginx`<br>
|
2. `sudo certbot certonly --nginx`<br>
|
||||||
<small><i>The **domain** must already be **bound** to the **IP-address** of the server by `CNAME`, `A` or `AAAA` record</i></small>
|
<small><i>The **domain** must already be **bound** to the **IP-address** of the server by `CNAME`, `A` or `AAAA` record</i></small>
|
||||||
|
|
||||||
### **Set up firewall rules for HTTP and HTTPS requests** (for [ubuntu](https://ubuntu.com/))<br>
|
### Set up firewall rules for HTTP and HTTPS requests (for [ubuntu](https://ubuntu.com/))
|
||||||
1. `sudo ufw allow "NGINX Full"`<br>
|
1. `sudo ufw allow "NGINX Full"`<br>
|
||||||
<small>1.1. <i>Make sure that the <b>port for SSH connection</b> is open</i></small><br>
|
<small>1.1. <i>Make sure that the <b>port for SSH connection</b> is open</i></small><br>
|
||||||
2. `sudo ufw allow 22`<br>
|
2. `sudo ufw allow 22`<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user