[Support] knex666 - Nextcloud 20


knex666

264 posts in this topic Last Reply

Recommended Posts

octagon-nextcloud.png

 

 

Nextcloud based on the official docker hub image.

Nextcloud 20.X with full ONLYOFFICE integration.

 

Based on: https://hub.docker.com/_/nextcloud/  Tag  20.X apache (latest)

 

Please make shure you got the volume mounting correct.

Please note you can mount any share to for example /mnt/Share and mount it in nextcloud with the "external storage" app.

 

-- PREVIEW:

 

xy.PNG

 

 

-- DONATE:

  Please buy me a Pizza > https://www.buymeacoffee.com/maschhoff

 

-- GUIDS:

 

---- FOLDER RIGHTS

To get the right folder/file rights add this to Extra Parameter and Post Execution

 

  <ExtraParams>--user 99:100 --sysctl net.ipv4.ip_unprivileged_port_start=0</ExtraParams>
  <PostArgs>&&  docker exec -u 0 NAME_OF_THIS_CONTAINER /bin/sh -c 'echo "umask 000" >> /etc/apache2/envvars'</PostArgs>

  ExtraParams: --user 99:100 --sysctl net.ipv4.ip_unprivileged_port_start=0
  PostArgs: &&  docker exec -u 0 NAME_OF_THIS_CONTAINER /bin/sh -c 'echo "umask 000" >> /etc/apache2/envvars'

 

---- REVERSE PROXY 

For security reasons and to get https you should use a reverse proxy

If you want to run it behind a reverse proxy make shure you got your proxy configuration right.

As reverse proxy I recommend to use LetsEncrypt with nginx. You will find a lot of example configurations

Then add  ‘overwriteprotocol’ => ‘https’ to your nextcloud config.

You will not be able to access it without your https reverse proxy anymore.

 

---- SPLIT DNS

If you are running nextcloud in your home network it is a good choice to use a split DNS to get the connection directly to your nextcloud.

In addition you will need it to get ONLYOFFICE accessable from inside and outside of your net.

To get this done you need a reverse proxy configuration that and the right DNS entry:

 

Example for dnsmasq or pihole DNS Server config 

address=/cloud.mydomain.com/192.168.100.100
address=/cloud.mydomain.com/1a01:308:3c1:f360::35e

192.168.100.100 should be your reverse proxy. You need a proxy configuration that points to "cloud.mydomain.com" passing it to your real nextcloud ip.

 

---- SECURITY CHECK

You can schedule a task that will automaticly check the security level and gives you a push notification if there are any issues.

It is based on https://scan.nextcloud.com/

 

https://github.com/maschhoff/nextcloud_securipy

 

 

Any questions? Dont mind to ask

Edited by knex666
added guids
  • Like 1
  • Thanks 1
Link to post
  • Replies 263
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Nextcloud based on the official docker hub image. Nextcloud 20.X with full ONLYOFFICE integration.   Based on: https://hub.docker.com/_/nextcloud/  Tag  20.X apache (latest)  

Option 2 seems easiest, created the following script below and set it to run every 5 min using the "Users Scripts" plugin #!/bin/bash docker exec -u www-data Nextcloud php -f /var/www/html/cron.ph

okay, this is a bit more advanced. and a bit offtopic here. nice that you are getting it to work. The curl error is very common and has to do with the package size of the document server app. maybe th

Posted Images

1 hour ago, cmckill said:

Please adjust the information to show your the author and not Nextcloud.  Its very misleading and could lead to someone who is looking for the official Nextcloud docker image to pull the wrong image.

IT is the official docker image thats why the author is nextcloud. 

Link to post

So I got this working and I'm digging it because it was easier to setup then other nextcloud options. However, would it be possible for you to adjust the container so it can use cron for "background jobs"?

 

Some extended apps like "News" requires it and it seems like it is usually recommended to use cron over the other 2 methods.

 

Thanks in advance!

Edited by randomninjaatk
Link to post
9 hours ago, randomninjaatk said:

So I got this working and I'm digging it because it was easier to setup then other nextcloud options. However, would it be possible for you to adjust the container so it can use cron for "background jobs"?

 

Some extended apps like "News" requires it and it seems like it is usually recommended to use cron over the other 2 methods.

 

Thanks in advance!

Thanks. 

 

Since I will not change the image because I dont want any fork you have 2 options:

1. build your own with cron: https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache

2. use the cron from unraid (Webinterface) and use docker exec.

 

Cheers

Link to post
4 hours ago, knex666 said:

Thanks. 

 

Since I will not change the image because I dont want any fork you have 2 options:

1. build your own with cron: https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache

2. use the cron from unraid (Webinterface) and use docker exec.

 

Cheers

Option 2 seems easiest, created the following script below and set it to run every 5 min using the "Users Scripts" plugin

#!/bin/bash
docker exec -u www-data Nextcloud php -f /var/www/html/cron.php
exit 0

Thanks!

  • Like 1
  • Thanks 1
Link to post
3 hours ago, zichichi said:

Hello,
I installed your docker but can't figure out how to set up onlyneoffice.

 

 

Normally if you set it up from scratch it should automaticy install onlyoffice.

 

nextcloud-installiere-apps.jpg

 

 

If you click on + it should show you the option to create a document. If not please got to Apps and enable onlyoffice and the document server. 
If this will not work we´ll meet at discord.

 

Cheers

Link to post
On 2/14/2020 at 11:26 PM, ijuarez said:

This is tempting but I already got a working instance.

I am in the same boat!

The only reason is the resources (which i dont have a problem right now but less is better!) but with docker i dont believe there is much of a difference.

Link to post
16 hours ago, karateo said:

I am in the same boat!

The only reason is the resources (which i dont have a problem right now but less is better!) but with docker i dont believe there is much of a difference.

 

I wanted onlyoffice this was easier than setting up the another docker and having it connect from my original instance.

Link to post

Question:


 

stuck on the first screen! 


All I have done is install the docker gone to the gui and filled out all the information but get an error


Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory


I guess this is because there is no database? but I was led to believe this docker is "all-in-one" so no need for letsencrypt/mariadb etc? but I guess that may be wrong?


Any correction/guidance appreciated!


Many Thanks

 

Thats a very wirred error. Have you setup the folder mounting correct?
Unless you havent changed the settings it will create a SQLite DB.

 

Cheers

Link to post
On 2/17/2020 at 7:24 PM, kriddles said:

I'm noobin... how do you assign it to another port?

just set your network to bride and add a port mapping from container port 8080 to your preferred port.

It should look like "Host Port1" in the image but just with the different port.

Nextcloud Port it 8080

 

Cheers

 

jY0FXvS.png&key=8ff4ad576116383334394686

Link to post
1 hour ago, knex666 said:

Question:


 


stuck on the first screen! 


All I have done is install the docker gone to the gui and filled out all the information but get an error


Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory


I guess this is because there is no database? but I was led to believe this docker is "all-in-one" so no need for letsencrypt/mariadb etc? but I guess that may be wrong?


Any correction/guidance appreciated!


Many Thanks

 

Thats a very wirred error. Have you setup the folder mounting correct?
Unless you havent changed the settings it will create a SQLite DB.

 

Cheers

 

Hi, this was because I was choosing MySQL/MariaDB due to the warning of performance issues when SQL Lite was selected! 

 

I already have Nextcloud installed on another server (linuxserver version) using MariaDB & LetsEncrypt, I followed Spaceinvader One's excellent guide to do this, I suppose I need to follow the guide again using this docker? are there any differences in setup that you can think of that I need to be aware of?

Link to post
 
Hi, this was because I was choosing MySQL/MariaDB due to the warning of performance issues when SQL Lite was selected! 
 
I already have Nextcloud installed on another server (linuxserver version) using MariaDB & LetsEncrypt, I followed Spaceinvader One's excellent guide to do this, I suppose I need to follow the guide again using this docker? are there any differences in setup that you can think of that I need to be aware of?
Hi,

I have no idea how it works If you setup it with MySQL. For me it works well with sqlite.
You Do not habe to follow the guide sinice onlyoffice is fully included in this Image and will automatically setup.

Cheers

Gesendet von meinem Redmi Note 8 Pro mit Tapatalk

Link to post
Hi,

I have no idea how it works If you setup it with MySQL. For me it works well with sqlite.
You Do not habe to follow the guide sinice onlyoffice is fully included in this Image and will automatically setup.

Cheers

Gesendet von meinem Redmi Note 8 Pro mit Tapatalk


If you have a large data from a user using sql lite could be very bad.

I lost my first Nextcloud install because I choose to do the sql lite I was transferring so much data that the dB just quit and could not recover.

Move to mariadb (MySQL essentially) haven’t had a problem.
Just my input.


Sent from my iPhone using Tapatalk
Link to post
1 minute ago, ijuarez said:


If you have a large data from a user using sql lite could be very bad.

I lost my first Nextcloud install because I choose to do the sql lite I was transferring so much data that the dB just quit and could not recover.

Move to mariadb (MySQL essentially) haven’t had a problem.
Just my input.


Sent from my iPhone using Tapatalk

Ok cool, I will give it a try. Thank you

Link to post

My installation 

 

For the docker I created a new port container port 80 host port 446 since Apache is not ssl

 

I followed instructions here

https://blog.linuxserver.io/2017/05/10/installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy/

The only difference was since this apache instance that is created does not use ssl in my letsencrypt proxy_pass must be http:/ not https:/

 

That got me up and running however I had an issue with the ONLYOFFICE document editing service address

When I tried to edit a document I saw an error that said "onlyOFFICE cannot be reached. Please contact admin"

 

Go to your settings -> ONLYOFFICE (under Administration)

Make sure the address is correct.


Currently it's all up and running.

Link to post
50 minutes ago, kriddles said:

My installation 

 

For the docker I created a new port container port 80 host port 446 since Apache is not ssl

 

I followed instructions here

https://blog.linuxserver.io/2017/05/10/installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy/

The only difference was since this apache instance that is created does not use ssl in my letsencrypt proxy_pass must be http:/ not https:/

 

That got me up and running however I had an issue with the ONLYOFFICE document editing service address

When I tried to edit a document I saw an error that said "onlyOFFICE cannot be reached. Please contact admin"

 

Go to your settings -> ONLYOFFICE (under Administration)

Make sure the address is correct.


Currently it's all up and running.

But everythings works now correct?

I had the same bumpy way setting up my internal and external reverse proxy.

As I've written in the first post here I solved it by adding  ‘overwriteprotocol’ => ‘https’ to my nextcloud config.

Link to post
On 2/11/2020 at 12:33 PM, knex666 said:

Any questions? Dont mind to ask

 

 

Hello I'm confused with my install - thinking this should be installing an apache server/GUI for me to launch into - but with default docker config settings I'm not getting a GUI option.   I Noticed that the Network type is defaulting to none and WebUI setting is blank.   Am I missing steps in the config?   I was thinking this was a version that wasn't going to need a Reverse Proxy Server, etc -- Thanks!

Link to post
39 minutes ago, jsdoc said:

Hello I'm confused with my install - thinking this should be installing an apache server/GUI for me to launch into - but with default docker config settings I'm not getting a GUI option.   I Noticed that the Network type is defaulting to none and WebUI setting is blank.   Am I missing steps in the config?   I was thinking this was a version that wasn't going to need a Reverse Proxy Server, etc -- Thanks!

this is the same problem i am having, i fubar my LSIO docker so i tried this one, the template does not have the variable for the port so you have to add it.

container is 80 and then whatever you want your host to be. 

 

My issue is that i am using the proxynet that was suggested a long time ago by spaceinvader.  So this docket is sitting on my proxynet, with the variable of port 80 container and 446 for host. Cannot access it, keeps telling me connection refused from the unraid wegui. 

 

Looked at the documentation and it states that nextcloud runs on port 80 in the container so it should work.  I have not being able to tackle the rest of the install because if this odd glitch. 

Link to post
23 hours ago, ijuarez said:

this is the same problem i am having, i fubar my LSIO docker so i tried this one, the template does not have the variable for the port so you have to add it.

container is 80 and then whatever you want your host to be. 

 

My issue is that i am using the proxynet that was suggested a long time ago by spaceinvader.  So this docket is sitting on my proxynet, with the variable of port 80 container and 446 for host. Cannot access it, keeps telling me connection refused from the unraid wegui. 

 

Looked at the documentation and it states that nextcloud runs on port 80 in the container so it should work.  I have not being able to tackle the rest of the install because if this odd glitch. 

had to reinstall all over, the port 466 issue was a brower cache issue.

 

Solved

 

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.