Change Nextcloud port

Dhy1

Explorer
Joined
Feb 6, 2019
Messages
81
Hello,
I have the latest version of FreeNas with the NextCloud plugin installed.
I would like to understand how to change the http and https ports of the NextCloud so as to bring it to reach: new port.
Thank You.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
You could change the listen port in the nginx config file. It should be located in /usr/local/etc/nginx.
 

Dhy1

Explorer
Joined
Feb 6, 2019
Messages
81
You could change the listen port in the nginx config file. It should be located in /usr/local/etc/nginx.

I checked where you told me but I didn't find anything ..
I tried to modify nginx.conf-dist but nothing changes remains on the 80

Code:
root@nextcloud:/usr/local/etc/nginx # ls
conf.d                  mime.types              scgi_params-dist
fastcgi_params          mime.types-dist         uwsgi_params
fastcgi_params-dist     nginx.conf              uwsgi_params-dist
koi-utf                 nginx.conf-dist         win-utf
koi-win                 scgi_params
root@nextcloud:/usr/local/etc/nginx #
 

Dhy1

Explorer
Joined
Feb 6, 2019
Messages
81
ok, I found the configuration file Nextcloud tells me that the domain is not reliable but it is already added to the list of domains.
is it possible that the proxy reverce accesses with another address to nextcloud? how do i know which one?
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
I installed a reverse proxy that must listen on port 80 and 443 which is currently occupied by the plugin.
Don’t alter the plugin itself. Let that be what it is and install the proxy in its own jail? By messing with the plugin you will potentially break updates. There is virtually no overhead penalty for running multiple jails as with multiple VMs
 
Top