Ok. I go try it from scratch again.
Yes i install on clear VDS fresh instance.
Ok, i write my steps here, hope you can help me and other users :)
-
Install VDS ubuntu 20
-
Go to Putty, connect ssh with root;pass
-
apt -y update && apt -y upgrade
-
apt -y install vim
-
Now i need instal docker
apt -y install ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt -y update
apt -y install docker-ce
- Now need delete Apache for stability nginx:
sudo /etc/init.d/apache2 stop
sudo apt-get purge apache2
- Lets go install nginx
apt -y install nginx
sudo systemctl enable nginx
sudo systemctl start nginx
sudo systemctl status nginx
Ok, all works. There are no errors.
- Install certbot for https
apt install certbot python3-certbot-nginx
certbot certonly --nginx -d uebishe.com,www.uebishe.com
write my mail, and agree all steps
-
wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf -O lemmy.conf
change params on
vi lemmy.conf
systemctl restart nginx
And now we have problem:
and journalctl -xe told me:
nah, the same problem.
in addition, now I have run out of the limit for reissuing SSL certificates. Due to the fact that I cleaned and installed it from scratch more than five times. It seems that the limit will be reset tomorrow.