nextcloud trusted domains

OmriA

Cadet
Joined
Jul 2, 2022
Messages
7
Hi, I want to add a trusted domain to my next cloud app.
*I'm very new at this*
I tried every guide and every form and nothing works.
I'll try to add all the information I can.
As you can see I can find the file in the SMB shares, but I can't open/copy/edit it at all
I tried with shell but no guide worked.
 

Attachments

  • Screenshot 2023-06-03 151423.png
    Screenshot 2023-06-03 151423.png
    35.5 KB · Views: 646
  • Screenshot 2023-06-03 151450.png
    Screenshot 2023-06-03 151450.png
    22.7 KB · Views: 620
  • Screenshot 2023-06-03 151531.png
    Screenshot 2023-06-03 151531.png
    7.9 KB · Views: 604

Kasen

Dabbler
Joined
Sep 15, 2023
Messages
17
Hi, have you solved this problem? Would you please share some ideas?
 

VD_BE

Cadet
Joined
Nov 3, 2020
Messages
7
Code:
pkg install nano

cd /usr/local/www/nextcloud/config/

cp config.php config.php-backup

nano config.php


Add this


2 => '192.168.0.0', #trusted IP
3 => 'nextcloud.domain.com', #trusted doamin

ctrl+s - save
ctrl+x - exit

Code:
cd /usr/local/etc/nginx/conf.d/

cp nextcloud.conf nextcloud.conf-backup

nano nextcloud.conf  


Add this

server
listen 80;
server_name nextcloud.domain.com;
 

VD_BE

Cadet
Joined
Nov 3, 2020
Messages
7
You are also in the wrong shell, you need to go to the jail of your nextcloud and the shell there
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
Correct. Jails are a CORE thing, not a SCALE thing.

What I like to do is mount the app data outside the app, then edit the config.php file which will then be stored outside in whatever dataset you have configured it to use.
 

Kasen

Dabbler
Joined
Sep 15, 2023
Messages
17
Hi, I SMB share the nextcloud app folder to windows and edit it.

2 => '192.168.0.0', #trusted IP
3 => 'nextcloud.domain.com', #trusted doamin

but still failed. I reinstall the truenas scale. I dont know what I changed it. The first time to use truenas. Try it later.

Thank you!
 
Top