وصول Ghost المشرف
عنوان URL: https://<server-ip>/ghost
أكمل الإعداد الأولي: أنشئ مستخدمًا إداريًا وقم بتكوين الموقع.
إدارة Ghost عبر 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
بيانات الاعتماد والتكوين
مخزنة في /root/ghost/.env و/root/ghost/docker-compose.yml.
إعداد البريد الإلكتروني
أزل التعليق mail القسم في /root/ghost/docker-compose.yml.
إعادة تشغيل الحاويات:
cd /root/ghost; docker compose restart
تأكد من منح الوصول إلى SMTP.
مثال لاستخدام كلمة مرور تطبيق 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
المجال وSSL
قم بتوجيه المجال الخاص بك إلى عنوان IP الخاص بالخادم.
تحديث /root/ghost/docker-compose.yml عنوان URL للمجال (عنوان URL: https://your-domain).
إعادة تشغيل الحاويات:
cd /root/ghost; docker compose restart
بالنسبة لـ Certbot SSL:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
استبدل مسارات SSL في /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;
إعادة تحميل إنجينكس:
nginx -t && systemctl reload nginx