Coder Social home page Coder Social logo

Comments (5)

mholt avatar mholt commented on June 14, 2024

@gabrielarrais Do you have anything specific about SSL offloading you'd like to recommend/suggest? Like, are you suggesting that Caddy become an SSL offloader for other backend systems? That could perhaps be built into the proxy middleware...

from caddy.

guilhermebr avatar guilhermebr commented on June 14, 2024

I think he want Caddy to work like nginx ssl directive...

(Example from: http://nginx.com/blog/nginx-ssl/)
And now you want to add HTTPS support, with NGINX decrypting the traffic using the certificate and private key and communicating with the backend servers over HTTP:

upstream backends {
   server 192.168.100.100:80;
   server 192.168.100.101:80;
}
server {
   listen              80;
   listen              443 ssl; # The ssl directive tells NGINX to decrypt 
                                # the traffic
   server_name         www.example.com;
   ssl_certificate     www.example.com.crt; # This is the certificate file
   ssl_certificate_key www.example.com.key; # This is the private key file
   location / {
       proxy_pass http://backends;
   }
}

from caddy.

mholt avatar mholt commented on June 14, 2024

I see. If that's the case, that could definitely be a good enhancement for the existing proxy middleware. I think. Someone is welcome to look into this since I may not get around to it for a while.

from caddy.

guilhermebr avatar guilhermebr commented on June 14, 2024

Ok I can look at this =]

from caddy.

guilhermebr avatar guilhermebr commented on June 14, 2024

@gabrielarrais You can try this caddyfile?

0.0.0.0 {
   tls web/server.crt web/server.key
   proxy / http://172.17.42.1:8080/
}

Using proxy + tls works for me, please try this and see if works for you =]

from caddy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.