[Support] Linuxserver.io - Nextcloud


Recommended Posts

2 hours ago, Tolete said:

in NginxProxyManager-

specify https protocol and the server host/ip and port 9980. Also enable Websockets Support.

On the SSL tab select a new certificate, enable HTTP/2.

I'm not the sharpest knife in the drawer, so forgive my ignorance, but how do you get to this NginxProxyManager?  I'm running swag on my unraid server, which incorporates Nginx, but I have never seen the interface you show in your post.

Link to comment
1 minute ago, dius said:

I'm not the sharpest knife in the drawer, so forgive my ignorance, but how do you get to this NginxProxyManager?  I'm running swag on my unraid server, which incorporates Nginx, but I have never seen the interface you show in your post.

NPM is a different reverse proxy manger

 

so is traefik.

Link to comment
3 hours ago, Tolete said:
took a second look at this got it up and running.
ncstatus.png.cace2b6a27d52ddaa58f8ba50c259141.png
 
steps i took--
 
reinstall/enable 'Nextcloud Office' (5.0.3) app.
 
ncoffice.png.3d22fb04911f77709ae576dde5bd9041.png
 
Collabora (latest)- 
edit container and remove the 'Domain' Variable.
add  new Variable
nxc1.png.d6c35fe4d9f0744005ee1a642ca9e0ae.png
save.
 
in NginxProxyManager-
specify https protocol and the server host/ip and port 9980. Also enable Websockets Support.
On the SSL tab select a new certificate, enable HTTP/2.
nxp.png.b7c07e8b860bfb953e86aa25ae067516.png
 
On the Advanced tab, enter:
# static fileslocation ^~ /loleaflet { proxy_pass $forward_scheme://$server:$port; proxy_set_header Host $http_host;}# WOPI discovery URLlocation ^~ /hosting/discovery { proxy_pass $forward_scheme://$server:$port; proxy_set_header Host $http_host;}# main websocketlocation ~ ^/lool/(.*)/ws$ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_http_version 1.1; proxy_pass $forward_scheme://$server:$port; proxy_set_header Host $http_host; proxy_read_timeout 36000s;}# download, presentation and image uploadlocation ~ ^/lool { proxy_pass $forward_scheme://$server:$port; proxy_set_header Host $http_host;}# Admin Console websocketlocation ^~ /lool/adminws { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_http_version 1.1; proxy_pass $forward_scheme://$server:$port; proxy_set_header Host $http_host; proxy_read_timeout 36000s;}
 

 
save and test.


Your pic shows “alliasgroup1”

Should it be as shown or “aliasgroup1” with ONE “l”?

 

edit: weird it only does work with TWO “l”. I don’t understand; I don’t see it expressed as anywhere with “alliasgroup” so don’t understand why that works. 🤦🏼‍♂️

Edited by blaine07
I dumb
Link to comment
46 minutes ago, blaine07 said:


Your pic shows “alliasgroup1”

Should it be as shown or “aliasgroup1” with ONE “l”?

 

edit: weird it only does work with TWO “l”. I don’t understand; I don’t see it expressed as anywhere with “alliasgroup” so don’t understand why that works. 🤦🏼‍♂️

 

i have updated pic/post

 

documentation says/pic show 'aliasgroup1' the '|' in pic is just the cursor.

Link to comment

I'm still trying to get Collabora & Nextcloud to work together.  Nextcloud shows that the Collabora server is reachable:

image.png.fa0d4355f0f4019307be0ae8228d4560.png

Yet I can't edit any documents using the Collabora server:

image.png.ac29e306d64dcae703b352b0a45c24fa.png

The swag log shows an error when I try to edit a document:

image.thumb.png.6749aa9f3a6f5ba96f453a4a66034191.png

And I get this error showing up in the Collabora log file:

image.png.f2c67f8a4b9bf7e831d567869dc16c2c.png

followed by several of these:

image.thumb.png.ca057ae671fa9221259064d3f2a38536.png

 

I know it's asking a lot, but I have no real clue how to troubleshoot this.  Any suggestions would be greatly appreciated.

 

Thanks in advance...

Link to comment
21 minutes ago, dius said:

I'm still trying to get Collabora & Nextcloud to work together.  Nextcloud shows that the Collabora server is reachable:

image.png.fa0d4355f0f4019307be0ae8228d4560.png

Yet I can't edit any documents using the Collabora server:

image.png.ac29e306d64dcae703b352b0a45c24fa.png

The swag log shows an error when I try to edit a document:

image.thumb.png.6749aa9f3a6f5ba96f453a4a66034191.png

And I get this error showing up in the Collabora log file:

image.png.f2c67f8a4b9bf7e831d567869dc16c2c.png

followed by several of these:

image.thumb.png.ca057ae671fa9221259064d3f2a38536.png

 

I know it's asking a lot, but I have no real clue how to troubleshoot this.  Any suggestions would be greatly appreciated.

 

Thanks in advance...

 

please see updated variable entry on my post.

 

Link to comment
3 minutes ago, Tolete said:

 

see updated post.

See my post above about admin panel.

 

Does this: 

# Admin Console websocket
location ^~ /lool/adminws {
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  proxy_http_version 1.1;
  proxy_pass $forward_scheme://$server:$port;
  proxy_set_header Host $http_host;
  proxy_read_timeout 36000s;
}

 

need to change because admin URL changed?

 

EDIT: also, using above, is there a way to make the ADMIN page only accessible internally and not at all outside LAN?

 

 

Edited by blaine07
Link to comment
5 minutes ago, blaine07 said:

See my post above about admin panel.

 

Does this: 

# Admin Console websocket
location ^~ /lool/adminws {
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  proxy_http_version 1.1;
  proxy_pass $forward_scheme://$server:$port;
  proxy_set_header Host $http_host;
  proxy_read_timeout 36000s;
}

 

need to change because admin URL changed?

 

EDIT: also, using above, is there a way to make the ADMIN page only accessible internally and not at all outside LAN?

 

 

 

post updated. new config

Link to comment
38 minutes ago, Tolete said:

please see updated variable entry on my post.

Thanks for your response.

 

This is how I setup my aliasgroup1 variable.  I've tried it with the port 443 and without.  Neither works.

 

image.png.449ddb3ee92ef8c039c57edb1fd1cd2c.png

 

I'm using Swag as my reverse proxy, so the config files are different.  Would it help if I posted it here?

 

Thanks again for your response.

Link to comment

I just had a breakthrough, don't know if it's luck or the actual solution, but for me,

 

Key: alias_group1

Value: https://my\\.nextcloud\\.domain:443

 

worked, finally.

 

Apparently the _ between alias and group1 is quite important. Don't know how others have gotten it to work, but that's what did it for me.

Link to comment
On 4/13/2022 at 1:34 PM, JonathanM said:

I just had a breakthrough, don't know if it's luck or the actual solution, but for me,

 

Key: alias_group1

Value: https://my\\.nextcloud\\.domain:443

 

worked, finally.

 

Apparently the _ between alias and group1 is quite important. Don't know how others have gotten it to work, but that's what did it for me.

Glad that worked for you.  Unfortunately it didn't work for me.

 

I'll keep plugging away... :) 

 

*UPDATE*

I got it working with a configuration I had previously tried but didn't work at the time.

 

I set the value for the alliasgroup1 key to https://mycloud.mydomain.org:443. This format now works for me.  Hopefully it helps others as well.

 

 

Edited by dius
Link to comment
2 minutes ago, blaine07 said:


Yeah I don’t see the _ anywhere defined. I’m super confused by all this lol

Neither did I, except in the logs as an error message. I was watching the collabora container logs in realtime as I attempted to edit a document, and it called out my FQDN and said it wasn't authorized in the alias_groups.

 

So I added 1+1 and got 3.

 

If that is indeed the case, and all the stuff I found online with aliasgroup1 is erroneous, I'm going to be rather upset that the internet wasted half my day. 🤣

 

All I know is, I made the change, and now it works, and no nastygrams in the logs about my domain not being authorized.

Link to comment
3 hours ago, Tolete said:

 

post updated. new config

Is this new config supposed to make /admin not available outside LAN? I can't find any difference between what you initially posted for "Admin" and the new admin config?

 

Also, on bottom of Edit Proxy Host on NPM it says: 

 

 Please note, that any add_header or set_header directives added here will not be used by nginx. You will have to add a custom location '/' and add the header in the custom config there.

 

The config you have shared includes proxy set header directives? It says they wont work?

Edited by blaine07
Link to comment
12 hours ago, blaine07 said:

Is this new config supposed to make /admin not available outside LAN? I can't find any difference between what you initially posted for "Admin" and the new admin config?

 

everything is running fine for me.

-not using _ or \\.//

 as for limiting the admin portal to local/lan only. no joy yet, have not gotten around it yet. Something like might work.

 

location ^~ /lool/adminws {
        return 404;
    }

 

Edited by Tolete
  • Like 1
Link to comment

After an update (automatic) I can't get into my Next Cloud

The screen I am presented with has a white box with "New password" in it, and the button below says  "Reset password"

Looks like the file syncing on my PC is working, but I can't seem to message my buddy using the talk app anymore either.

I was really starting to get into NextCloud.   :(  

Link to comment

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.