• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Question Nextcloud extension on Plesk Obsidian working fine, But I cannot figure out how to configure the proxy

bosse1

New Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
10.0.71
The Apache configuration for the domain under /var/www/vhosts/httpdocs/domain.com is functioning properly, and Nextcloud can open its normal text files without issues. But there is no collaboration without Collabora Office.

The snippet of code below would be the normal configuration if Apache were also being used for the proxy on a non-Plesk server, and can be inserted via the Apache/Nginx additional directives under the https section of Apache.

Code:
# Collabora config:
 AllowEncodedSlashes NoDecode
 ProxyPreserveHost On


 # static html, js, images, etc. served from coolwsd
 # browser is the client part of Collabora Online
 ProxyPass           /browser http://127.0.0.1:9980/browser retry=0
 ProxyPassReverse    /browser http://127.0.0.1:9980/browser


 # WOPI discovery URL
 ProxyPass           /hosting/discovery http://127.0.0.1:9980/hosting/discovery retry=0
 ProxyPassReverse    /hosting/discovery http://127.0.0.1:9980/hosting/discovery


 # Capabilities
 ProxyPass           /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities retry=0
 ProxyPassReverse    /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities


 # Main websocket
 ProxyPassMatch      "/cool/(.*)/ws$"      ws://127.0.0.1:9980/cool/$1/ws nocanon


 # Admin Console websocket
 ProxyPass           /cool/adminws ws://127.0.0.1:9980/cool/adminws


 # Download as, Fullscreen presentation and Image upload operations
 ProxyPass           /cool http://127.0.0.1:9980/cool
 ProxyPassReverse    /cool http://127.0.0.1:9980/cool
 # Compatibility with integrations that use the /lool/convert-to endpoint
 ProxyPass           /lool http://127.0.0.1:9980/cool
 ProxyPassReverse    /lool http://127.0.0.1:9980/cool

However, Plesk is using Apache to serve and Nginx to proxy, so this configuration, while allowing me to try to open proper .docx files, does not succeed in opening those files. After a long wait, the final error I'm getting is:

Document loading failed

Failed to load Nextcloud Office - please try again later
 
Back
Top