Fix WOPI: Use config for Nextcloud URL instead of hardcoded nc.b0esche.cloud

This commit is contained in:
Leon Bösche
2026-01-13 15:25:04 +01:00
parent afeb7a35ad
commit 8d9db29db2
2 changed files with 7 additions and 20 deletions

View File

@@ -111,7 +111,7 @@ func NewRouter(cfg *config.Config, db *database.DB, jwtManager *jwt.Manager, aut
})
// PutFile & Lock operations: POST /wopi/files/{fileId}/contents and POST /wopi/files/{fileId}
r.Post("/contents", func(w http.ResponseWriter, req *http.Request) {
wopiPutFileHandler(w, req, db, jwtManager)
wopiPutFileHandler(w, req, db, jwtManager, cfg)
})
// Lock operations: POST /wopi/files/{fileId}
r.Post("/", func(w http.ResponseWriter, req *http.Request) {