http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion/posts/lua/connect-to-https-upstream-with-lua-resty-http.html
However, when you need it to do HTTPS things are just a little more complex - it's not a simple as passing it https as a scheme, instead you need to make a specific call to trigger the SSL handshake This snippet shows how to do that (using a keepalive pool to reduce connection overhead between requests) Details Language: LUA License: BSD-3-Clause Snippet function fetch_via_https ( server , path ) local httpc = http . new () ok , err = httpc : connect ( server , 443 ) then ngx . log ( ngx ....