Iâm trying to install Nextcloud with nginx but I canât find a good guide on how to do it. This guide was really good but it is using apache and I got stuck.
I already have a jail in TrueNAS with nginx installed which is handling Emby as my media server but canât install Nextcloud. The steps that I have done are:
Create a Nextcloud jail
Install nginx
Install php
Install MariaDB
but then I get stuck because the majority of guides are for apache. Could someone be so kind to help me (guide me) with the installation please? The guide above I posted seems really good because it is separating the Nextcloud config, db, and themes from the actual data which is good but at the same time is a bit confusing for me since Iâm not that good at setting up proxy stuff or networking.
Please, if you have the time to help me out, I could really really use a hand
This is my nginx config so far (the config works for Emby as of right now):
Since I want to use my domain, do I include the nginx config (the one you guys provided from Nextcloud website) right below the Emby config? Iâm talking about this file:
I unzipped the file again using the -v flag and found out that config.php is not installed by default:
What should I do? I downloaded 3 different files from here and none of those installed the config.php file when I unzipped the files! These are the versions I downloaded:
so yes. in principal you have to create a second vhost server{} in your nginx config pointing to the nextcloud apache webserver.
donât get confused: your nginx is the reverse proxy. i think you canât use this nginx as the nextcloud web-server because it is running in a different jail. or?
I finally managed to install NC. The issue now is that when I try to use mydomain.com/nextcloud/ I get a 404 not found error. I have added to the trusted domains in config.php the new IP and my domain. On the nginx config file I have also added the IP and domain.
The part where I am stuck is configuring nginx.conf because I have a separate jail (nginx) that handles internet traffic and certificates renewals. This is what I have so far:
Jail 1: nginx reversed proxy installed with the fullchain.pem and privkey.pem
Jail 2: Emby which is using mydomain.com just fine
Jail 3: Nextcloud installed (mariaDB installed and configured, nginx installed, php installed, redis installed, php-fpm installed - the part that I donât know how to configure is nginx.conf (from jail 1)