Přístup k Ghost Admin
URL: https://<server-ip>/ghost
Dokončete počáteční nastavení: vytvořte uživatele správce a nakonfigurujte web.
Spravujte Ghost pomocí Docker Compose
cd /root/ghost docker compose ps # View running containers docker compose up -d # Start Ghost docker compose down # Stop Ghost docker compose restart # Restart Ghost
Pověření a konfigurace
Uloženo v /root/ghost/.env a /root/ghost/docker-compose.yml.
Nastavení e-mailu
Odebrat komentář mail sekce v /root/ghost/docker-compose.yml.
Restartujte kontejnery:
cd /root/ghost; docker compose restart
Ujistěte se, že je povolen přístup SMTP.
Příklad použití hesla aplikace Gmail:
mail__transport: SMTP mail__options__host: smtp.gmail.com mail__options__port: 465 mail__options__secure: true mail__options__auth__user: [email protected] mail__options__auth__pass: your-app-password
Doména a SSL
Nasměrujte svou doménu na IP serveru.
Aktualizovat /root/ghost/docker-compose.yml Adresa URL domény (url: https://vaše-doména).
Restartujte kontejnery:
cd /root/ghost; docker compose restart
Pro Certbot SSL:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Nahradit cesty SSL v /etc/nginx/sites-enabled/ghost.
# Example ssl_certificate /etc/letsencrypt/live/your-domain/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/your-domain/privkey.pem;
Znovu načíst Nginx:
nginx -t && systemctl reload nginx