Nextcloud / OnlyOffice Refused To Connect

After configuring the ONLYOFFICE connector for Nextcloud and saving the Server settings, the Common settings, Editor customization settings, Common templates, and Secure view settings sections do not appear.

Hello @ckvtz
Please reproduce the issue and record a video file. After that please collect whole Document server logs folder. It’s located here:
docker: /app/onlyoffice/DocumentServer/logs/documentserver/
deb\rpm: /var/log/onlyoffice/documentserver/
Windows: Program Files\ONLYOFFICE\DocumentServer\log

A few more things. Please specify Document server version and check out mutual availability between servers with wget\curl commands (go to Nextcloud and run wget https://DS_domain_name; and vice versa, from DS server run wget https://NC_domain_name).

This is what i had to add to proxy config file in case someone is having issues.

server {
listen 443 ssl;
listen [::]:443 ssl;

server_name documentserver.*;

include /config/nginx/ssl.conf;

client_max_body_size 0;

# enable for ldap auth (requires ldap-location.conf in the location block)
#include /config/nginx/ldap-server.conf;

# enable for Authelia (requires authelia-location.conf in the location block)
#include /config/nginx/authelia-server.conf;

# enable for Authentik (requires authentik-location.conf in the location block)
#include /config/nginx/authentik-server.conf;

location / {
    # enable the next two lines for http auth
    #auth_basic "Restricted";
    #auth_basic_user_file /config/nginx/.htpasswd;

    # enable for ldap auth (requires ldap-server.conf in the server block)
    #include /config/nginx/ldap-location.conf;

    # enable for Authelia (requires authelia-server.conf in the server block)
    #include /config/nginx/authelia-location.conf;

    # enable for Authentik (requires authentik-server.conf in the server block)
    #include /config/nginx/authentik-location.conf;

    include /config/nginx/proxy.conf;
    include /config/nginx/resolver.conf;
    set $upstream_app documentserver;
    set $upstream_port 443;
    set $upstream_proto https;
    proxy_pass $upstream_proto://$upstream_app:$upstream_port;
	
#whitelist NextCloud
add_header Content-Security-Policy "frame-ancestors 'self' https://nextcloud.YOURDOMAIN.com";
	
}

}

1 Like