-
I'm using the package installation on ubuntu 20.04 and want to setup SSL with let's encrypt. https://demo.inventree.org/ uses Let's encrypt for SSL. I bet many people will be interested in having SSL. Since the configuration may be cumbersome, is it possible to share the server configuration of the demo instance so people can have a starting point? Or maybe there is already a tutorial for that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The package install uses nginx as a web proxy/server, every tutorial for that server should work. |
Beta Was this translation helpful? Give feedback.
-
Here is how I did it on Ubuntu 20.04 with inventree installed from package. Maybe someone will find the instructions usefull. I'm curious if this will be update safe... Make sure the ufw (if used as firewall on the server) has the profile
Install certbot with nginx plugin
Stop nginx
Backup the nginx server configuration to
Modify
Move the conf to
Let certbot issue certificates
When asked, choose not to redirect (
Run
Run
Run (depending on the server resources this will take really long time!)
Check if the nginx configurations are OK
Start nginx
Create a new server conf in
Create a symlink for the new conf in
Start nginx
Check if certbot will be able to renew the certificates in future
Check the score of the new configuration with |
Beta Was this translation helpful? Give feedback.
Here is how I did it on Ubuntu 20.04 with inventree installed from package. Maybe someone will find the instructions usefull. I'm curious if this will be update safe...
Make sure the ufw (if used as firewall on the server) has the profile
Nginx Full
enabled. Runufw status
. The output should look like this:Install certbot with nginx plugin