linuxserver.io

[Support] Linuxserver.io - Nextcloud

1603 posts in this topic Last Reply

Recommended Posts

I have been trying to get nextcloud set up with a reverse proxy with the spaceinvader tutorial however when I do this I keep getting a '500 internal server error'  I take a look in the error.log and there is nothing there.  What could I be doing wrong?  

 

Here is my nextcloud.subdomain.conf:

# make sure that your dns has a cname set for nextcloud
# edit your nextcloud container's /config/www/nextcloud/config/config.php file and change the server address info as described
# at the end of the following article: https://blog.linuxserver.io/2017/05/10/installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy/

server {
    listen 443 ssl;
    
    server_name nextcloud.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_nextcloud nextcloud;
        proxy_max_temp_file_size 2048m;
        proxy_pass https://$upstream_nextcloud:443;
    }
}

Here is my config.php file:  I changed my url from what it actually is to test.:

 

 

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'oc5vpjwh780k',
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' => 
  array (
    0 => '192.168.1.100:448',
    1 => 'nextcloud.test.com',
  ),
  'overwrite.cli.url' => 'https://nextcloud.test.com',
  'overwritehost' => 'nextcloud.test.com',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '13.0.5.2',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.1.100:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'user',
  'dbpassword' => 'XXXXXXXXXXXXXXX',
  'installed' => true,
);

 

Share this post


Link to post
7 hours ago, mgranger said:

I have been trying to get nextcloud set up with a reverse proxy with the spaceinvader tutorial however when I do this I keep getting a '500 internal server error'  I take a look in the error.log and there is nothing there.  What could I be doing wrong?  

 

Good morning

 

Did you create the custom network as explained in the proxy-confs/_readme ?

Share this post


Link to post
3 hours ago, Gog said:

 

Good morning

 

Did you create the custom network as explained in the proxy-confs/_readme ?

 

No I did not but that seemed to fix it.  Thanks

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.