92 lines
2.7 KiB
Markdown
92 lines
2.7 KiB
Markdown
# WebDAV Server Konfiguration
|
|
|
|
## Server URLs
|
|
- **WebDAV Server:** http://localhost:3000
|
|
- **Templates Ordner:** http://localhost:3000/webdav/templates/
|
|
- **Output Ordner:** http://localhost:3000/webdav/output/
|
|
|
|
## Template-Management über WebDAV
|
|
|
|
### Templates bearbeiten
|
|
1. **Microsoft Word:**
|
|
- Datei → Öffnen → URL: `ms-word:ofe|u|http://localhost:3000/webdav/templates/dateiname.docx`
|
|
- Oder: Datei → Öffnen → `http://localhost:3000/webdav/templates/dateiname.docx`
|
|
|
|
2. **LibreOffice:**
|
|
- Datei → Öffnen → Remote-Dateien → `http://localhost:3000/webdav/templates/`
|
|
|
|
### Neue Templates erstellen
|
|
1. **Direkt in Word:**
|
|
- Datei → Speichern unter
|
|
- URL: `http://localhost:3000/webdav/templates/`
|
|
- Dateiname eingeben (muss auf .docx enden)
|
|
|
|
2. **Upload via HTTP PUT:**
|
|
```bash
|
|
curl -X PUT http://localhost:3000/webdav/templates/mein-template.docx \
|
|
-H "Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document" \
|
|
--data-binary @lokale-datei.docx
|
|
```
|
|
|
|
### Templates löschen
|
|
```bash
|
|
curl -X DELETE http://localhost:3000/webdav/templates/dateiname.docx
|
|
```
|
|
|
|
## Anmeldedaten
|
|
- **Keine Authentifizierung erforderlich**
|
|
|
|
## Verbindung aufbauen
|
|
|
|
### Windows
|
|
1. Windows Explorer öffnen
|
|
2. "Dieser PC" auswählen
|
|
3. Ribbon-Menü: "Computer" → "Netzlaufwerk verbinden"
|
|
4. Ordner: `http://localhost:8080/output`
|
|
5. Benutzername und Passwort eingeben
|
|
|
|
**Alternative über Kommandozeile:**
|
|
```cmd
|
|
net use Z: http://localhost:8080/output /user:admin password123
|
|
```
|
|
|
|
### macOS
|
|
1. Finder öffnen
|
|
2. Menü "Gehe zu" → "Mit Server verbinden..." (⌘K)
|
|
3. Server-Adresse: `http://localhost:8080/output`
|
|
4. Benutzername und Passwort eingeben
|
|
|
|
### Linux (Ubuntu/Debian)
|
|
1. Dateimanager (Nautilus) öffnen
|
|
2. "Andere Orte" klicken
|
|
3. "Mit Server verbinden" → `dav://localhost:8080/output`
|
|
4. Benutzername und Passwort eingeben
|
|
|
|
**Kommandozeile:**
|
|
```bash
|
|
# davfs2 installieren
|
|
sudo apt-get install davfs2
|
|
|
|
# Mount-Point erstellen
|
|
sudo mkdir /mnt/webdav
|
|
|
|
# WebDAV mounten
|
|
sudo mount -t davfs http://localhost:8080/output /mnt/webdav
|
|
```
|
|
|
|
### Office-Programme
|
|
Die meisten Office-Programme (Microsoft Word, LibreOffice) können direkt WebDAV-URLs öffnen:
|
|
- **Word:** Datei → Öffnen → http://localhost:8080/output/dateiname.docx
|
|
- **LibreOffice:** Datei → Öffnen → Remote-Dateien → http://localhost:8080/output/
|
|
|
|
## Funktionen
|
|
- ✅ DOCX-Dateien direkt bearbeiten
|
|
- ✅ Automatische Synchronisation
|
|
- ✅ Mehrbenutzer-Zugriff
|
|
- ✅ Versionierung durch Office-Programme
|
|
- ✅ Offline-Bearbeitung (bei gemounteten Laufwerken)
|
|
|
|
## Sicherheitshinweise
|
|
- Nur für lokale Entwicklung verwenden
|
|
- In Produktion HTTPS und stärkere Authentifizierung nutzen
|
|
- Firewall-Regeln für Port 8080 beachten |