Redirect nginx to ssl docker sevice


I have a server on Hetzner do I configured several services on doker. In this case Portainer and Node-red.
I have connected a ddns domain pointing to the server ip and configured via certbot standalone the certificates individually for each service.
I can access both correctly via the following links: (portainer) (node-red)

I would like to configure nginex in such a way that I can access the services via path and force an ssl redirect.
Example: –>
The certificates are loaded and configured in the individual services

NgineX site-enable configfile:

server {
listen 443 ssl;
ssl_certificate     /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;

location /portainer     {
location /node-red {

the default configuration file is also present

Source: Docker Questions

Categorised as docker, nginx, ssl, ubuntu Tagged , , ,


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us