Done.I'll need to update the README to note this.
Sure. When did you run it? Do you know if you used the Caddy version of the script (which is current), or Apache (which I'd used previously)?IS there a process without rebuilding the entire nextcloud environment
iocage console nextcloud
. Install acme.sh using curl https://get.acme.sh | sh
. Then issue the cert. If you're going to use HTTP validation (if you have ports 80 and 443 open to your jail), you'd do acme.sh --issue -w /usr/local/www/apache24/data -d ${HOST_NAME} -k 4096 --fullchain-file /usr/local/etc/pki/tls/certs/fullchain.pem --key-file /usr/local/etc/pki/tls/private/privkey.pem --reloadcmd "service apache24 reload"
. If you'd be using DNS validation, you'll need to modify the command to account for that.That's exactly what we are doing - perfect, thanks. I'll give this a shot!If you're going to use HTTP validation (if you have ports 80 and 443 open to your jail).
..../usr/local/www/apache24/data -d ${HOST_NAME} -k 4096 --fullchain-file
......
Close. The $ and braces would come out, so it would bewould that be correct?
acme.sh --issue -w /usr/local/www/apache24/data -d test.example.com -k 4096 --fullchain
Close. The $ and braces would come out, so it would beacme.sh --issue -w /usr/local/www/apache24/data -d test.example.com -k 4096 --fullchain
It can go anywhere, so not a problem. What was probably happening was that acme.sh had gotten a cert previously, but hadn't deployed it to the right locations. Adding --force makes it go through the issuance process again, and it then deploys the cert and reloads apache--and should update its config files to automatically do that in the future.just tossed the --force at the very end
oh I see. I am going to have to look into how to configure Caddy. I am having issues with big uploads not working via public link for nextcloud (even though upload_max etc set 8GB etc). The solution appears to be commenting out LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so in the apache httpd.conf file.... But of course now I know why I can't find this anywhere!It isn't; the script doesn't use Apache any more. Instead, it uses Caddy.
The nextcloud_error.log has ERROR 504 ....etc.... read tcp 127.0.0.1:21686->127.0.0.1:9000: i/o timeout . So looks like some sort of timeout error but not sure whyIf you can find where the error is, it will be easier to determine what needs to be done to fix it.
Seems as though it was a bit fussy with memory_limit and max settings. Changing to the following (i.e. lowering them) did the trickYou may also find relevant information in /var/log/php-fpm.log.