Access Etherpad
- User interface:
https://<SERVER_IP> - Admin interface:
https://<SERVER_IP>/admin - Yönetici bilgileri: Kullanıcı adı
admin, password stored in.envasADMIN_PASSWORD
Yönetici Ayarları Üzerinden Kullanıcı Ekle
1. Visit: https://<SERVER_IP>/admin
2. Go to Settings.
3. Bir JSON yapılandırma dosyası görüntülenecektir.
4. Locate the users section:
"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
}
},
5. Yeni bir kullanıcı ekleyin (geçerli JSON söz dizimine uyun):
"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
}
},
6. Ayarları Kaydet'e tıklayın.
7. Etherpad'yi Yeniden Başlat'a tıklayın.
Önemli Dosyalar ve Dizinler
- Application installation:
/root/etherpad - Docker Compose dosyası:
/root/etherpad/docker-compose.yml - Environment variables:
/root/etherpad/.env - PostgreSQL veritabanı verileri:
/var/lib/docker/volumes/etherpad_postgres_data/_data - Etherpad çalışma zamanı verileri:
/var/lib/docker/volumes/etherpad_etherpad-var/_data - Plugins directory:
/var/lib/docker/volumes/etherpad_plugins/_data - Nginx configuration:
/etc/nginx/sites-available/etherpad - SSL certificates:
/etc/nginx/ssl/
Service Management
List containers:
docker ps
Restart containers:
docker compose -f /root/etherpad/docker-compose.yml restart
Etherpad günlüklerini takip edin:
docker compose -f /root/etherpad/docker-compose.yml logs -f
Restart Nginx:
systemctl restart nginx
Bir Alan Adıyla SSL Etkinleştirme
1. Alan adınızı sunucu IP adresine yönlendirin.
2. Nginx yapılandırmasını düzenleyin ve her ikisini de değiştirin server_name <IP>; alan adınızla (<your-domain>) hem HTTP (port 80) hem de HTTPS (port 443) blokları için:
vim /etc/nginx/sites-available/etherpad
3. Install Certbot:
apt install -y certbot python3-certbot-nginx
4. Geçerli bir Let's Encrypt sertifikası oluşturmak için şu komutu çalıştırın:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Nginx yapılandırmasındaki SSL yollarını değiştirin:
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. Değişiklikleri uygulamak için Nginx'i yeniden başlatın:
systemctl restart nginx
7. Tarayıcınızı açın ve şu adresi ziyaret edin: https://yourdomain.com
Notes
- Etherpad, SSL sonlandırması ve gelişmiş güvenlik için bir Nginx ters proxy arkasında sunulmaktadır.
- Kendinden imzalı sertifika tarayıcı uyarılarına yol açabilir; Let's Encrypt kullanılmıyorsa bu beklenen bir durumdur.
- Bazı tarayıcılar hata gösterebilir veya Etherpad'nin düzgün çalışmasını engelleyebilir.
- Etherpad, Firefox üzerinde test edilmiş ve sorunsuz çalıştığı doğrulanmıştır. En iyi uyumluluk için Firefox önerilir.