Uzyskaj dostęp do administratora Ghost
Adres URL: https://<server-ip>/ghost
Zakończ wstępną konfigurację: utwórz administratora i skonfiguruj witrynę.
Zarządzaj Ghostem za 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
Poświadczenia i konfiguracja
Przechowywane w plikach /root/ghost/.env i /root/ghost/docker-compose.yml.
Konfiguracja poczty e-mail
Odkomentuj mail sekcja w /root/ghost/docker-compose.yml.
Uruchom ponownie kontenery:
cd /root/ghost; docker compose restart
Upewnij się, że dostęp SMTP został przyznany.
Przykład użycia hasła do aplikacji 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
Domena i SSL
Skieruj swoją domenę na adres IP serwera.
Aktualizacja /root/ghost/docker-compose.yml Adres URL domeny (url: https://twoja-domena).
Uruchom ponownie kontenery:
cd /root/ghost; docker compose restart
W przypadku Certbota SSL:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Zamień ścieżki SSL w /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;
Załaduj ponownie Nginx:
nginx -t && systemctl reload nginx