Help install SSL certificate on a nextcloud instance running on my local NAS (Truenas)
Budget: $10 – $30 USD
Hello
Thank you for considering this project.
I have a TrueNAS server on my local network.
I have done the following:
1. Installed a Nextcloud instance on my TrueNAS server within a jail inside iocage.
2. Pointed my FQDN (subdomain) to my IP address through DDNS.
3. Port forwarded to 443 on internal IP so now my fqdn:442 resolves to my nextcloud instance login page.
4. Obtained from ssls.com a certificate file along with the private key, so I have both cert.crt and cert.key
5. Placed these files into /etc/ssl/cert.crt; AND /etc/ssl/cert.key; respectively
Here's where I am running into two challenges..
1. Editing /usr/local/etc/nginx/conf.d/nextcloud.conf file to have the following string...
server {
#listen 80; # comment this line
listen 443 ssl;
ssl_certificate /etc/ssl/cert.crt;
ssl_certificate_key /etc/ssl/cert.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
server_name FQDN;
Does NOT remove the "Not Secure warning" when accessing Nextcloud through FQDN. I need help with this.
2. Resetting the nextcloud plugin or just stopping/starting the jail resets the nextclud.conf file, so I'd need your help with setting up a cron job to resolve this automatically in case the plugin is restarted or if the NAS is rebooted.
Thank you for considering this project.
I have a TrueNAS server on my local network.
I have done the following:
1. Installed a Nextcloud instance on my TrueNAS server within a jail inside iocage.
2. Pointed my FQDN (subdomain) to my IP address through DDNS.
3. Port forwarded to 443 on internal IP so now my fqdn:442 resolves to my nextcloud instance login page.
4. Obtained from ssls.com a certificate file along with the private key, so I have both cert.crt and cert.key
5. Placed these files into /etc/ssl/cert.crt; AND /etc/ssl/cert.key; respectively
Here's where I am running into two challenges..
1. Editing /usr/local/etc/nginx/conf.d/nextcloud.conf file to have the following string...
server {
#listen 80; # comment this line
listen 443 ssl;
ssl_certificate /etc/ssl/cert.crt;
ssl_certificate_key /etc/ssl/cert.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
server_name FQDN;
Does NOT remove the "Not Secure warning" when accessing Nextcloud through FQDN. I need help with this.
2. Resetting the nextcloud plugin or just stopping/starting the jail resets the nextclud.conf file, so I'd need your help with setting up a cron job to resolve this automatically in case the plugin is restarted or if the NAS is rebooted.