mirror of
https://github.com/statbate/docs.git
synced 2026-08-11 02:42:41 +00:00
update
This commit is contained in:
commit
eabb01cfef
21 changed files with 921 additions and 0 deletions
23
install/nginx.md
Normal file
23
install/nginx.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
```
|
||||
apt-get install nginx certbot
|
||||
mkdir /etc/nginx/ssl/
|
||||
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
|
||||
chown www-data:www-data /etc/nginx/ssl/dhparam.pem
|
||||
chmod 400 /etc/nginx/ssl/dhparam.pem
|
||||
```
|
||||
|
||||
Create SSL certificate.
|
||||
```
|
||||
certbot certonly --webroot -w /var/www/html -d chaturbate100.com -m test@test.com --agree-tos
|
||||
```
|
||||
|
||||
Update config files.
|
||||
```
|
||||
wget -O /etc/nginx/nginx.conf https://raw.githubusercontent.com/poiuty/chaturbate100.com/master/conf/nginx.conf
|
||||
wget -O /etc/nginx/sites-available/default https://raw.githubusercontent.com/poiuty/chaturbate100.com/master/conf/default
|
||||
```
|
||||
|
||||
```
|
||||
systemctl restart nginx
|
||||
systemctl status nginx
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue