[GH-ISSUE #4855] [Feature]: Reverse Proxy config URI option for each inbound #3386

Closed
opened 2026-10-31 20:32:05 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @abz-the-jit on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4855

Yes. I have an XHTTP configuration that is routed through an Nginx reverse proxy. The Nginx proxy uses a different domain and port than the original XHTTP config, and it also handles TLS termination.

As a result, every time I create a new configuration, I have to manually modify all the relevant fields (domain, port, TLS settings) to match the reverse proxy setup.

Describe the solution you'd like

Add a "Reverse Proxy URI" option for each inbound:
For every inbound, add a new tab/section where the user can specify:

Host
Port
Whether TLS is active
This data should only be used for:

Generating the config URLs
Displaying the QR code
info in subscription page
config URLs in telegram too
The actual internal routing and behavior of the inbound should remain unchanged.

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

Frontend (UI / panel pages)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @abz-the-jit on GitHub (Jun 3, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4855 ### Is your feature request related to a problem? Yes. I have an XHTTP configuration that is routed through an Nginx reverse proxy. The Nginx proxy uses a different domain and port than the original XHTTP config, and it also handles TLS termination. As a result, every time I create a new configuration, I have to manually modify all the relevant fields (domain, port, TLS settings) to match the reverse proxy setup. ### Describe the solution you'd like Add a "Reverse Proxy URI" option for each inbound: For every inbound, add a new tab/section where the user can specify: Host Port Whether TLS is active This data should only be used for: Generating the config URLs Displaying the QR code info in subscription page config URLs in telegram too The actual internal routing and behavior of the inbound should remain unchanged. ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? Frontend (UI / panel pages) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:32:05 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 3, 2026):

This is a duplicate of #4329, which you also opened — and the good news is: this feature already exists in the panel.

External Proxy — already in the inbound form

When editing or creating an inbound, look for the External Proxy toggle in the transport/stream settings section. Enabling it lets you add one or more proxy entries, each with:

Field Purpose
TLS (forceTls) same (inherit), none, or TLS
Host (dest) The reverse-proxy domain (e.g. cdn.example.com)
Port The external port (e.g. 443)
Remark Optional label for this entry
SNI / Fingerprint / ALPN Additional TLS params (shown when TLS is selected)

You can add multiple entries — each one produces a separate share link. The actual Xray server process is unaffected; these overrides only change the generated config URLs, QR codes, subscription output, and Telegram links. This is exactly what you described.

The relevant frontend component is frontend/src/pages/inbounds/form/transport/external-proxy.tsx, and the backend handling lives in sub/subService.go (buildExternalProxyURLLinks / buildVmessExternalProxyLinks).

Closing as a duplicate of #4329.

<!-- gh-comment-id:4611679061 --> @github-actions[bot] commented on GitHub (Jun 3, 2026): This is a duplicate of #4329, which you also opened — and the good news is: **this feature already exists** in the panel. ## External Proxy — already in the inbound form When editing or creating an inbound, look for the **External Proxy** toggle in the transport/stream settings section. Enabling it lets you add one or more proxy entries, each with: | Field | Purpose | |-------|---------| | **TLS** (`forceTls`) | `same` (inherit), `none`, or `TLS` | | **Host** (`dest`) | The reverse-proxy domain (e.g. `cdn.example.com`) | | **Port** | The external port (e.g. `443`) | | **Remark** | Optional label for this entry | | **SNI / Fingerprint / ALPN** | Additional TLS params (shown when TLS is selected) | You can add multiple entries — each one produces a separate share link. The actual Xray server process is unaffected; these overrides only change the generated config URLs, QR codes, subscription output, and Telegram links. This is exactly what you described. The relevant frontend component is `frontend/src/pages/inbounds/form/transport/external-proxy.tsx`, and the backend handling lives in `sub/subService.go` (`buildExternalProxyURLLinks` / `buildVmessExternalProxyLinks`). Closing as a duplicate of #4329.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3386
No description provided.