Fix assets:create 404: form-urlencoded mot /apps/richdocuments/assets, intern CODE över HTTP
- lib/bridge.js createAssetLink: POST <nextcloudUrl>/apps/richdocuments/assets (utan index.php), Content-Type application/x-www-form-urlencoded med body path=<urlencoded>, path trimmad utan ledande slash (userFolder->get relativt filrot), OCS-APIRequest borttagen. Fel inkluderar statusCode + svarskropp. - Intern collaboraUrl är HTTP: http://code:9980 (fallback http://<bridge-ip>:9980) i nc-collab-config default, .env.example, example-flows.json, docker-compose, install.sh och integrate-into-nodered.sh resolve_collabora_url. - Publik WOPI-URL dokumenterad som https://docs.domain.name. - package-lock.json för deterministisk form-data-install i Docker.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
defaults: {
|
||||
name: { value: '' },
|
||||
nextcloudUrl: { value: 'https://cloud.domain.name', required: true },
|
||||
collaboraUrl: { value: 'https://172.17.0.2:9980', required: true },
|
||||
collaboraUrl: { value: 'http://code:9980', required: true },
|
||||
collaboraPublicUrl: { value: 'https://cloud.domain.name' },
|
||||
username: { value: '', required: true },
|
||||
verifyTls: { value: false }
|
||||
@@ -56,11 +56,11 @@
|
||||
<h4>Two backends</h4>
|
||||
<ul>
|
||||
<li><strong>Nextcloud</strong> (<code>nextcloudUrl</code>) — files via WebDAV + Office API (OCS richdocuments)</li>
|
||||
<li><strong>Collabora CODE</strong> (<code>collaboraUrl</code>) — conversion engine (<code>/cool/...</code>). Internal Docker bridge, e.g. <code>https://172.17.0.2:9980</code>. IP is detected at install — don't hardcode blindly on every host.</li>
|
||||
<li><strong>Collabora CODE</strong> (<code>collaboraUrl</code>) — conversion engine (<code>/cool/...</code>). Internal CODE is plain <strong>HTTP</strong>: <code>http://code:9980</code> (shared Docker network) or fallback <code>http://<bridge-ip>:9980</code>, e.g. <code>http://172.17.0.2:9980</code> after <code>docker network connect bridge nextcloud-node-red</code>. Never HTTPS against the internal bridge.</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Auth:</strong> username + <em>app password</em>. Not your normal account password.</p>
|
||||
<p><code>collaboraPublicUrl</code> — what the browser sees for WOPI/editor links (CODE proxied via Nextcloud). Internal IP won't work in an iframe.</p>
|
||||
<p><code>verifyTls</code> — turn off for internal CODE when the cert doesn't match IP/hostname.</p>
|
||||
<p><code>collaboraPublicUrl</code> — what the browser sees for WOPI/editor links, e.g. <code>https://docs.domain.name</code> (CODE proxied via Nextcloud/reverse proxy). Internal HTTP URLs won't work in an iframe.</p>
|
||||
<p><code>verifyTls</code> — only relevant if you point <code>collaboraUrl</code> at an HTTPS endpoint; the default internal HTTP needs no TLS at all.</p>
|
||||
<p>Default output folder in bridge if you omit a destination: <code>/Dokument/OfficeOut/</code></p>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user