You will need to make a small adjustment if using a reverse proxy though. Inside the nextcloud “config.php” file, you will want to change the “overwritehost” variable to your domain name, the “overwriteprotocol” to https, and the “overwritecliurl” to https://yourdomain.com
This is because the script will set all that to http and IP address, but since you have a reverse proxy, it won’t work unless you change the above values.
The file will be at “/usr/local/www/nextcloud/config/config.php”
I had already been using the overwritehost variable with my old install and it worked with that setup. I haven’t even got to the point of changing variables like that yet
The ping resolves to my public IP and a dynamic DNS host name. I utilize a paid Dynamic DNS provider to assign the dynamic host name to my public IP and utilize a CNAME entry to assign it to a subdomain on one of my owned domains.
Every time I tried to use VNET while trying to build this before specifying “INTERFACE=hn1”, I was getting a failure on the startup of the jail specifying VNET failure.
Just removed
INTERFACE=“hn1”
VNET=“off”
and switched to
JAIL_INTERFACES=“vnet0:bridge0”
and got “Stopped NextCloud due to VNET failure”
changed IP addresses to change from CIDR notation and now the jail creates to the point where it checks DNS, which fails.
Since I have only two existing mount points should I create the other two and move the content from the themes and the config directory to them before I run the script?
Will the script update config.php with the new dbhost config? I believe /tmp/mysql.sock is no longer valid with the newer mariadb versions.
Not sure if I can update to NC 27 before running the script and this version will work with php83.
Else I will do is you suggested and update the script…