Custom SSL Cert renewal automation - Lets Encrypt


Recommended Posts

Hi All,

 

I am new to unraid, and recently got my domain SSL cert to work with the GUI of unraid. I am using the NGINX Proxy Manager docker container to renew a wildcard cert, and proxy a handful of containers to force SSL. I haven't quite figured out how to automate the renewal for the WebUI though.. right now, I manually need to move the updated cert to /boot/config/ssl/certs/server-name_unraid_bundle.pem (and append the key into the file, since unraid needs it all in one file).

 

I think the easiest solution would be to run a weekly bash script to copy whatever cert is in my NPM docker into the unraid webui folder, probably weekly or monthly. is there a specific place to write/store a script that would persist after a reboot?

 

or, is there a more elegant solution?

 

Thanks!

-Fries

Link to comment
31 minutes ago, TheLargeFries said:

is there a specific place to write/store a script that would persist after a reboot?

 

Anything on /boot/ is on the flash drive and will persist.

 

I'd recommend creating /boot/config/custom/ and placing your scripts in there. 

 

Or take a look at the User Scripts plugin, it is a nice way to manage custom scripts.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.