|
64 | 64 | log "📝 Setze Document Server URL: $ONLYOFFICE_SERVER_URL" |
65 | 65 | docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice DocumentServerUrl --value="$ONLYOFFICE_SERVER_URL" |
66 | 66 |
|
67 | | -# Configure JWT Secret if provided |
| 67 | +# Configure JWT Secret if provided (matching curl which has secret empty) |
68 | 68 | if [ -n "$ONLYOFFICE_JWT_SECRET" ]; then |
69 | 69 | log "🔐 Setze JWT Secret..." |
70 | 70 | docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice jwt_secret --value="$ONLYOFFICE_JWT_SECRET" |
71 | | - docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice jwt_header --value="AuthorizationJwt" |
72 | 71 | else |
73 | | - warning "⚠️ Kein JWT Secret gesetzt - Verbindung könnte unsicher sein!" |
| 72 | + log "Deaktiviere JWT Secret (matching working curl request)..." |
| 73 | + docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice jwt_secret --value="" |
74 | 74 | fi |
75 | 75 |
|
76 | | -# Additional OnlyOffice configuration for better stability |
| 76 | +# Additional OnlyOffice configuration - matching the working curl request |
77 | 77 | log "⚙️ Konfiguriere OnlyOffice-Einstellungen..." |
78 | 78 |
|
79 | | -# Set timeout values |
80 | | -docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice timeout --value="600" |
| 79 | +# Clear internal document server URL (leave empty like in curl) |
| 80 | +docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice documentserverInternal --value="" |
81 | 81 |
|
82 | | -# Enable verification peer (SSL) |
83 | | -docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice verify_peer_off --value="" |
| 82 | +# Clear storage URL (leave empty like in curl) |
| 83 | +docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice StorageUrl --value="" |
84 | 84 |
|
85 | | -# Set storage URL if different from main URL |
86 | | -if [ -n "$NEXTCLOUD_URL" ]; then |
87 | | - docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice StorageUrl --value="$NEXTCLOUD_URL" |
88 | | -fi |
| 85 | +# Set verify_peer_off to false (matching curl: verifyPeerOff=false) |
| 86 | +docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice verify_peer_off --value="false" |
| 87 | + |
| 88 | +# Clear JWT header (leave default) |
| 89 | +docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice jwt_header --value="" |
| 90 | + |
| 91 | +# Disable demo mode (matching curl: demo=false) |
| 92 | +docker exec --user www-data nextcloud-fpm /var/www/html/occ config:app:set onlyoffice demo --value="false" |
89 | 93 |
|
90 | 94 | # Test the connection |
91 | 95 | log "🔗 Teste Verbindung zum Document Server..." |
|
0 commit comments