الوصول إلى Etherpad
- واجهة المستخدم:
https://<SERVER_IP> - واجهة المشرف:
https://<SERVER_IP>/admin - بيانات اعتماد المشرف: اسم المستخدم
admin، كلمة المرور مخزّنة في.envasADMIN_PASSWORD
إضافة مستخدمين عبر إعدادات المشرف
١. تفضّل بزيارة: https://<SERVER_IP>/admin
٢. انتقل Go إلى الإعدادات.
٣. سيتم عرض ملف إعداد JSON.
٤. حدّد موقع قسم users :
"users": {
"admin": {
// 1) "password" can be replaced with "hash" if you install ep_hash_auth
// 2) please note that if password is null, the user will not be created
"password": "${ADMIN_PASSWORD:null}",
"is_admin": true
},
"user": {
// 1) "password" can be replaced with "hash" if you install ep_hash_auth
// 2) please note that if password is null, the user will not be created
"password": "test",
"is_admin": false
}
},
٥. أضف مستخدماً جديداً (اتّبع صياغة JSON الصحيحة):
"users": {
"admin": {
// 1) "password" can be replaced with "hash" if you install ep_hash_auth
// 2) please note that if password is null, the user will not be created
"password": "${ADMIN_PASSWORD:null}",
"is_admin": true
},
"user": {
// 1) "password" can be replaced with "hash" if you install ep_hash_auth
// 2) please note that if password is null, the user will not be created
"password": "test",
"is_admin": false
},
"newuser": {
"password": "strongpassword",
"is_admin": false
}
},
٦. انقر على حفظ الإعدادات.
٧. انقر على إعادة تشغيل Etherpad.
الملفات والمجلدات المهمة
- تثبيت التطبيق:
/root/etherpad - ملف Docker Compose:
/root/etherpad/docker-compose.yml - متغيرات البيئة:
/root/etherpad/.env - بيانات قاعدة بيانات PostgreSQL:
/var/lib/docker/volumes/etherpad_postgres_data/_data - بيانات تشغيل Etherpad:
/var/lib/docker/volumes/etherpad_etherpad-var/_data - مجلد الإضافات:
/var/lib/docker/volumes/etherpad_plugins/_data - إعداد NGINX:
/etc/nginx/sites-available/etherpad - شهادات SSL:
/etc/nginx/ssl/
إدارة الخدمة
عرض قائمة الحاويات:
docker ps
إعادة تشغيل الحاويات:
docker compose -f /root/etherpad/docker-compose.yml restart
متابعة سجلات Etherpad:
docker compose -f /root/etherpad/docker-compose.yml logs -f
إعادة تشغيل NGINX:
systemctl restart nginx
تفعيل SSL مع نطاق
1. وجِّه نطاقك إلى IP الخادم.
2. حرّر إعدادات Nginx واستبدل كليهما server_name <IP>; بنطاقك (<your-domain>) لكلا كتلتي HTTP (المنفذ 80) وHTTPS (المنفذ 443):
vim /etc/nginx/sites-available/etherpad
3. ثبّت Certbot:
apt install -y certbot python3-certbot-nginx
4. شغّل الأمر التالي لتوليد شهادة Let’s Encrypt صالحة:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. استبدل مسارات SSL في إعدادات Nginx:
vim /etc/apache2/sites-available/etherpad
# 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
ملاحظات
- يعمل Etherpad خلف وكيل عكسي Nginx لإنهاء SSL وتعزيز الأمان.
- قد يُصدر المتصفح تحذيرات عند استخدام شهادة موقّعة ذاتياً؛ وهذا أمر متوقع ما لم تُستخدم Let's Encrypt.
- قد تظهر أخطاء في بعض المتصفحات أو تتأثر طريقة عمل Etherpad.
- تم اختبار Etherpad والتحقق من عمله على Firefox، ويُنصح باستخدامه للحصول على أفضل توافق.