Hantu

Platform penerbitan profesional untuk membuat, berbagi, dan mengembangkan bisnis berbasis konten.

Akses Admin Ghost

URL: https://<server-ip>/ghost

Lakukan pengaturan awal: buat pengguna admin dan konfigurasikan situs.

Kelola Ghost menggunakan Docker Compose

cd /root/ghost
docker compose ps        # Tampilkan kontainer yang sedang berjalan
docker compose up -d     # Mulai Ghost
docker compose down      # Hentikan Ghost
docker compose restart   # Mulai ulang Ghost

Kredensial & Konfigurasi

Disimpan di /root/ghost/.env dan /root/ghost/docker-compose.yml.

Pengaturan Email

Buka komentar mail bagian dalam /root/ghost/docker-compose.yml.

Mulai ulang kontainer:

cd /root/ghost; docker compose restart

Pastikan akses SMTP telah diberikan.

Contoh penggunaan Kata Sandi Aplikasi 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

Domain & SSL

Arahkan domain Anda ke alamat IP server.

Pembaruan /root/ghost/docker-compose.yml URL ke domain (URL: https://your-domain).

Mulai ulang kontainer:

cd /root/ghost; docker compose restart

Untuk Certbot SSL:

apt install -y certbot python3-certbot-nginx
certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>

Ganti jalur SSL di /etc/nginx/sites-enabled/ghost.

# Contoh
ssl_certificate /etc/letsencrypt/live/your-domain/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/your-domain/privkey.pem;

Muat ulang Nginx:

nginx -t && systemctl reload nginx

 

Rincian Aplikasi