criitch.ru
ubuntu:20.04
- domain (e.g.
example.com
) - dns (cloudflare) resolves this VPS
git clone git@github.com:crutch12/criitch.ru.git
cd ./criitch.ru
$ sudo sh install.sh
- https://dash.cloudflare.com/
- create site
- change domain dns servers - set Cloudflare Nameservers in your Domain Registrar (e.g. reg.ru)
- wait up to 24h
see https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/
Setup:
- create
./certbot/.env
(from./cerbot/.env.example
) - create
./certbot/cloudflare.ini
(from./certbot/cloudflare.ini.example
)
Run
$ cd ./certbot
$ docker compose up certbot --build
# update cron
$ crontab -e
Add (replace /path/to/criitch.ru/certbot)
@monthly cd /path/to/criitch.ru/certbot && docker compose up certbot --build
$ docker compose up -d
Recreate
$ docker compose up -d --force-recreate