Using HTTPS upstream while in Reverse Proxy Mode

Đang mở
#539 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
22/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
backend, networking

Hướng nghiên cứu

Start by reading Tinyproxy's ReverseOnly and upstream proxy configuration documentation, then trace how reverse proxy requests are routed through the SOCKS5 upstream. The issue does not identify relevant source files or tests, and the desired behavior needs design decisions about selecting HTTP versus HTTPS for virtual hosts. Done would mean a documented configuration and behavior that routes both kinds of sites as described.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Tinyproxy version

1.11.1

Issue

Not sure if this is at all possible, but...

I'd like to use Tinyproxy as a reverse proxy only (ReverseOnly) while the default upstream is a SOCKS5 proxy.

Currently I have:

Port 8888
upstream socks5 127.0.0.1:1080
Allow 127.0.0.1

Where (for reason that I won't get into) there is a SOCKS5 proxy server that connects to an Apache web server serving up multiple sites (virtual hosts).

This works great if I setup my web browser to use TinyProxy as it's proxy server. I can connect to anyone of those sites, including both HTTP and HTTPS (the HTTPS is important for the next part).

Now... In front of TinyProxy I have setup an HAProxy instance that has a backend pointing to TinyProxy:

frontend http
  bind *:443 ssl crt /etc/ssl/certs/mysite.pem
  default_backend tunneled

backend tunneled
    server            tinyproxy 127.0.0.1:8888

By now I think you understand what I'd like to do. Essentially I would like to use TinyProxy as an HTTPS -> SOCKS5 -> HTTP/HTTPS proxy/translator.

Question (or feature request) is, what configuration changes must I make to TinyProxy to allow the above to work? For example, one thing that comes to mind is how do I tell TinyProxy that "Site A" on the upstream uses HTTP vs "Site B" on the same upstream uses HTTPS?

Ngôn ngữ chính
C
Star
6.1k
Fork
768
Merge trung bình
15 ngày 3 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tinyproxy/tinyproxy

Tất cả issue của tinyproxy/tinyproxy

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.