# MyBlogs



npx create-docusaurus@latest itblog.site classic --typescript

`pnpm start`
    Starts the development server.

`pnpm build`
    Bundles your website into static files for production.

`pnpm serve`
    Serves the built website locally.

`pnpm deploy`
    Publishes the website to GitHub pages.

We recommend that you begin by typing:

  `cd itblog.site`
  `pnpm start`



 sudo nano /etc/caddy/Caddyfile





cd ~
git clone https://lavren1974.forgejo.ru/lavren1974/MyBlogs
sudo rm -r /var/www/MyBlogs/itblog.site
sudo mkdir /var/www/MyBlogs/itblog.site
sudo cp -r ~/MyBlogs/itblog.site/build/* /var/www/MyBlogs/itblog.site/ 
sudo rm -r ~/MyBlogs




cd /var/www
sudo git clone https://lavren1974.forgejo.ru/lavren1974/MyBlogs.git

# Меняем владельца
sudo chown -R caddy:caddy /var/www/MyBlogs

# Меняем права
sudo chmod -R 755 /var/www/MyBlogs

sudo nano /etc/caddy/Caddyfile

 ```
:8080 {
    root * /var/www/MyBlogs/itblog.site/build
    file_server
    encode gzip
}
 ```

sudo systemctl restart caddy
sudo systemctl status caddy

 curl -v http://localhost:8080

 ## Proxmox

 ```
pve.lichess.host {
    reverse_proxy https://localhost:8006 {
        transport http {
            tls_insecure_skip_verify
        }
    }
}

itblog.lichess.host {
    reverse_proxy 139.60.161.10:8080
}
 ```


cd /var/www/MyBlogs
sudo git push https://lavren1974.forgejo.ru/lavren1974/MyBlogs.git


cd ~
git clone https://lavren1974.forgejo.ru/lavren1974/MyBlogs

sudo mkdir /var/www/MyBlogs/itblog.site
# вносите изменения
sudo cp -r ~/MyBlogs/itblog.site/build/* /var/www/MyBlogs/itblog.site/ 