generated from mirzaev/pot-php
1.1.1
Pechatalka
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
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
cd examples/nginxsudo cp pechatalka.conf /etc/nginx/sites-avaiable/pechatalka.confsudo nvim /etc/nginx/sites-avaiable/pechatalka.conf
3.1 Customize the file according to your requirementssudo ln -s /etc/nginx/sites-avaiable/pechatalka.conf /etc/nginx/sites-enabled/pechatalka.confsudo nginx -t
5.1 Make sure that NGINX does not throw errors, otherwise proceed to step №3 or to the instructions for generate a TLS/SSL certificatesudo service nginx restart
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 for ubuntu)
sudo apt install certbot python3-certbot-nginxsudo certbot certonly --nginx
The domain must already be bound to the IP-address of the server byCNAME,AorAAAArecord
Set up firewall rules for HTTP and HTTPS requests (for ubuntu)
sudo ufw allow "NGINX Full"
1.1. Make sure that the port for SSH connection is opensudo ufw allow 22sudo ufw enable
SystemD (or any alternative you like)
You can copy an example of the systemd file from here: /examples/systemd/arming.service
cd examples/systemdsudo cp pechatalka.service /etc/systemd/system/pechatalka.service && sudo chmod +x /etc/systemd/system/pechatalka.servicesudo nvim /etc/systemd/system/pechatalka.service
3.1 Customize the file according to your requirementssudo systemctl daemon-reloadsudo systemctl enable pechatalka
Description
Languages
PHP
59.5%
CSS
18.2%
JavaScript
16.2%
HTML
5.5%
Shell
0.6%