الوصول إلى الويب
- قم بالوصول إلى Poznote في متصفح الويب الخاص بك:
https://<SERVER-IP> - قبول تحذير SSL (شهادة موقعة ذاتيًا).
- يتم تخزين بيانات اعتماد Poznote بشكل آمن في:
/root/poznote/.env
مسارات مهمة
- دليل التثبيت:
/root/poznote - البيانات الدائمة:
/root/poznote/data - ملف البيئة:
/root/poznote/.env - ملف docker-compose:
/root/poznote/docker-compose.yml - تكوين Nginx:
/etc/nginx/sites-available/poznote - شهادات SSL:
/etc/nginx/ssl/
إدارة الخدمة
دوكر:
cd /root/poznote
docker compose ps
docker compose logs -f
docker compose restart
Nginx:
systemctl status nginx
systemctl restart nginx
تمكين SSL باستخدام نطاق
1. قم بتوجيه نطاقك إلى عنوان IP للخادم.
2. قم بتحرير تكوين Nginx واستبدل كلاهما server_name <IP>; مع نطاقك (<your-domain>) لكل من كتل HTTP (المنفذ 80) و HTTPS (المنفذ 443):
vim /etc/nginx/sites-available/poznote
3. تثبيت Certbot:
apt install -y certbot python3-certbot-nginx
4. قم بتشغيل الأمر التالي لإنشاء شهادة Lets Encrypt صالحة:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. استبدل مسارات SSL في تكوين Nginx:
vim /etc/apache2/sites-available/poznote
# Before:
# ssl_certificate /etc/nginx/ssl/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
6. أعد تشغيل Nginx لتطبيق التغييرات:
systemctl restart nginx
7. افتح متصفحك وانتقل إلى: https://yourdomain.com