# Configure SSL on Rancher using Nginx

**URL:** <https://forums.suse.com/t/configure-ssl-on-rancher-using-nginx/12669>\
**Category:** General\
**Created:** [December 10, 2018, 8:08pm UTC](https://forums.suse.com/t/configure-ssl-on-rancher-using-nginx/12669 "2018-12-10T20:08:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swethachidurala](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Swethachidurala](https://forums.suse.com/u/Swethachidurala)\
**Post date:** [December 10, 2018, 8:08pm UTC](https://forums.suse.com/t/configure-ssl-on-rancher-using-nginx/12669/1 "2018-12-10T20:08:50Z")

</div>

Hello,

We have a rancher instance running without SSL, currently we are running on configuring SSL on Rancher Using Nginx but we are running into issues.

Steps Taken to enable:

Installed Nginx container running below command:

docker container run --detach --publish 8080:80 --name nginx nginx

Configuration:

/etc/nginx/conf.d/rancher.conf

upstream rancher {  
server frosty\_wozniak:8080;  
}  
map $http\_upgrade $connection\_upgrade {  
default Upgrade;  
‘’ close;  
}  
server {  
listen 443 ssl;  
server\_name $URL;  
ssl\_certificate /tmp/certs/example\_certificate.pem;  
ssl\_certificate\_key /tmp/certs/example.key;

access\_log /var/log/nginx/access.log;  
error\_log /var/log/nginx/error.log;

location / {  
proxy\_set\_header Host $host;  
proxy\_set\_header X-Forwarded-Proto $scheme;  
proxy\_set\_header X-Forwarded-Port $server\_port;  
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;  
proxy\_pass [http://rancherd](http://rancherd);  
proxy\_http\_version 1.1;  
proxy\_set\_header Upgrade $http\_upgrade;  
proxy\_set\_header Connection “connection\_upgrade”;  
# This allows the ability for the execute shell window to remain open for up to 15 minutes. Without this parameter, the default is 1 minute and will automatically close.  
proxy\_read\_timeout 900s;  
}  
}  
server {  
listen 80;  
server\_name $URL;  
return 301 https://$server\_name$request\_uri;

And after we restarted our nginx container and rancher container we are seeing errors in our docker logs as below

WARNING: 2018/12/10 19:49:17 grpc: addrConn.createTransport failed to connect to {0.0.0.0:2379 0 }. Err :connection error: desc = “transport: authentication handshake failed: EOF”. Reconnecting…  
WARNING: 2018/12/10 19:49:28 grpc: addrConn.createTransport failed to connect to {0.0.0.0:2379 0 }. Err :connection error: desc = “transport: authentication handshake failed: EOF”. Reconnecting…

Please help if we are missing anything.

Thanks,
