Verified Commit 18a099bd authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Fix: onionproxy: always do backend proxy requests through HTTPS (#6)

parent 32767e71
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -185,10 +185,11 @@ server {
    # Connection handling
    proxy_set_header Connection "";

    # Do the upstream request
    #proxy_pass http://example.org;
    #proxy_pass http://debugger_upstream;
    proxy_pass "${scheme}://${subdomains}${upstream_domain}${requested_uri}";
    # Do the upstream request, forcing HTTPS
    #proxy_pass https://example.org;
    #proxy_pass https://debugger_upstream;
    #proxy_pass "${scheme}://${subdomains}${upstream_domain}${requested_uri}";
    proxy_pass "https://${subdomains}${upstream_domain}${requested_uri}";
  }

  location / {