This commit is contained in:
2026-05-31 13:19:05 +05:00
parent 4203b1e9f8
commit 91d5883885

View File

@@ -14,10 +14,10 @@ You can copy an example of the server file from here: `/examples/nginx/pechatalk
1. `cd /examples/nginx`<br> 1. `cd /examples/nginx`<br>
2. `sudo cp pechatalka.conf /etc/nginx/sites-avaiable/pechatalka.conf`<br> 2. `sudo cp pechatalka.conf /etc/nginx/sites-avaiable/pechatalka.conf`<br>
3. `sudo nvim /etc/nginx/sites-avaiable/pechatalka.conf`<br> 3. `sudo nvim /etc/nginx/sites-avaiable/pechatalka.conf`<br>
<small>3.1 <i>Customize the file according to your requirements</i></small><br> <small>3.1. <i>Customize the file according to your requirements</i></small><br>
4. `sudo ln -s /etc/nginx/sites-avaiable/pechatalka.conf /etc/nginx/sites-enabled/pechatalka.conf`<br> 4. `sudo ln -s /etc/nginx/sites-avaiable/pechatalka.conf /etc/nginx/sites-enabled/pechatalka.conf`<br>
5. `sudo nginx -t`<br> 5. `sudo nginx -t`<br>
<small>5.1 <i>Make sure that <b>NGINX does not throw errors</b>, otherwise proceed 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 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 ### Add mime-type recognition for javascript modules
@@ -31,14 +31,14 @@ You can copy an example of the server file from here: `/examples/nginx/pechatalk
<small><i>The **domain** must already be **bound** to the **IP-address** of the server by `CNAME`, `A` or `AAAA` record</i></small><br> <small><i>The **domain** must already be **bound** to the **IP-address** of the server by `CNAME`, `A` or `AAAA` record</i></small><br>
3. Uncomment and reconfigure the nginx server file 3. Uncomment and reconfigure the nginx server file
4. `sudo nginx -t`<br> 4. `sudo nginx -t`<br>
<small>4.1 <i>Make sure that <b>NGINX does not throw errors</b></i></small><br> <small>4.1. <i>Make sure that <b>NGINX does not throw errors</b></i></small><br>
5. `sudo service nginx restart` 5. `sudo service nginx restart`
### 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"`<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>
<small>2.1 <i>Use your SSH port instead of 22</i></small><br> <small>2.1. <i>Use your SSH port instead of 22</i></small><br>
3. `sudo ufw enable` 3. `sudo ufw enable`
## SystemD (or any alternative you like) ## SystemD (or any alternative you like)
@@ -46,6 +46,6 @@ You can copy an example of the systemd file from here: `/examples/systemd/arming
1. `cd examples/systemd`<br> 1. `cd examples/systemd`<br>
2. `sudo cp pechatalka.service /etc/systemd/system/pechatalka.service && sudo chmod +x /etc/systemd/system/pechatalka.service`<br> 2. `sudo cp pechatalka.service /etc/systemd/system/pechatalka.service && sudo chmod +x /etc/systemd/system/pechatalka.service`<br>
3. `sudo nvim /etc/systemd/system/pechatalka.service`<br> 3. `sudo nvim /etc/systemd/system/pechatalka.service`<br>
<small>3.1 <i>Customize the file according to your requirements</i></small><br> <small>3.1. <i>Customize the file according to your requirements</i></small><br>
4. `sudo systemctl daemon-reload`<br> 4. `sudo systemctl daemon-reload`<br>
3. `sudo systemctl enable pechatalka`<br> 3. `sudo systemctl enable pechatalka`<br>