Nextcloud/Onlyoffice not working over nginx https proxy, works over http

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 18.0.2): 18.0.4
Operating system and version (eg, Ubuntu 20.04): ARM64 docker container for nextcloud, running document server in docker container amd64, both latest version and running great
Apache or nginx version (eg, Apache 2.4.25): nginx docker container - https ://github.com/staticfloat/docker-nginx-certbot Use’s nginx/1.17.9
PHP version (eg, 7.1): PHP 7.3.17

The issue you are facing:

I had to add spaces in url’s to get this to post. remove the space before : to get links to work. Sorry

This is ultimately my error https ://imgur.com/Wk8q4Ni . I do not know where the relevant error logs are for this error. Please tell me and ill fetch them. Below is more information.

https ://cloud.armory.network -> my nextcloud
https ://office.armory.network -> my document server
http ://mw11:8080 -> my nextcloud
http ://m4:8080 -> my document server

I can reach my nextcloud instance and my onlyoffice instance by domain names over https no problem. Both are reached properly with lets encrypt certs. When configuring the onlyoffice connector, i put the url where i can reach my document server. https ://imgur.com/pzBKdor It accepts the url. When attempting to open a document in nextcloud, i get the following error. https ://imgur.com/Wk8q4Ni . If i change the only office connector settings to use the http private names, and then access my nextcloud over the http url, it works. https ://imgur.com/UysUIiO & https ://imgur.com/5GeDlLp . This however is not a solution, i cant access my nextcloud over http all the time.

nginx config - https ://imgur.com/Xz4UtXI

The output of your Nextcloud log in Admin > Logging:

These logs were generated when i was testing different things, non of these logs are generated when i have the settings i talked about above.
https ://imgur.com/eNOG0Hd

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'mw11',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '18.0.4.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'REMOVED',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'REMOVED',
  'dbpassword' => 'REMOVED',
  'installed' => true,
  'instanceid' => 'oc6zjjczkcwl',
);

Hello,
What about the logs in /var/log/onlyoffice ?