NextCloud 12 How to access over http?

antikurjers

Cadet
Joined
Jan 25, 2019
Messages
8
Hi! I install Nextcloud. I have TrueNAS latest version. Its work well but allow login only with https. But I use the external reverse proxy. I configured my reverse-proxy take :8080 to :443 but NextCloud doesn't allow login too. I think in webserver or code is locked login over http. How to allow over HTTP?

The answer is not! I remove it from TrueNAS and install dedicated nextcloud server.
 
Last edited:

passatiji

Dabbler
Joined
Dec 22, 2017
Messages
11
You can fix that without having to run two separate physical servers.

cp /usr/local/etc/nginx/conf.d/nextcloud.conf /usr/local/etc/nginx/conf.d/nextcloud8080.conf

ee /usr/local/etc/nginx/conf.d/nextcloud8080.conf

change this:

#
upstream php-handler {
upstream php-fpm {
server unix:/var/run/nextcloud-php-fpm.sock;
}

server {
listen 8080; #default_server;
# server_name _;

Then restart nginx:

service nginx restart

ee /usr/local/www/nexctcloud/config/config.php
add your IP to trusted domains:
'trusted_domains' =>
array (
0 => 'YOUR.DOMAIN.com',
1 => 'YOUR SERVER IP',
),

restart plugin
 
Last edited:

ChrisChros

Patron
Joined
Nov 24, 2018
Messages
218
Thanks I will try it out later.
Will this change also survive an update of the plugin?
 

passatiji

Dabbler
Joined
Dec 22, 2017
Messages
11
I didn't run plugin update after these modifications.
AND
Currently experiencing a challenge to access the server by the IP address. So, I am sorry and I wouldn't consider it completely working solution.
 
Last edited:
Top