[GH-ISSUE #860] Sub and Web could not use same port #574

Closed
opened 2026-10-31 20:12:59 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @guard43ru on GitHub (Aug 3, 2023).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/860

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I have read all WIKI document,nothing can help me in my problem.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

Hello, please match ip:port pairs for exclude these error (at now match only port) here

I use 3x-ui with nginx reverse-proxy (hide all in 80,443 port)
In my setup ip:port used:

12.34.56.78:80 - nginx (redirect to https)
12.34.56.78:443 - nginx (stream_ssl_preread, routes to xray,panel,subscription)
127.0.1.1:443 (xray-reality)
127.0.1.1:80 (panel)
127.0.1.2:80 (subscription)

It's absolutely correct, but can't be saved with error:
Modify Settings Fail: Sub and Web could not use same port: 80
At now I edit database directly, for made do work (and it's work as expected).

If use different ports (8080 or other) subscription/panel generated links was broken:
http://domain.example:8080/sub/1kdeji89387frgj59

Also good idea make checkbox "use https" to generated links (at now all QR http://)
for case when 3x-ui behind reverse-proxy.

Version of 3x-ui

3X: v1.7.5
Xray: v1.8.1

x-ui log reports or xray log

Not need

Originally created by @guard43ru on GitHub (Aug 3, 2023). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/860 ### Welcome - [X] Yes, I'm using the latest major release. Only such installations are supported. - [X] Yes, I'm using the supported system. Only such systems are supported. - [X] Yes, I have read all WIKI document,nothing can help me in my problem. - [X] Yes, I've searched similar issues on GitHub and didn't find any. - [X] Yes, I've included all information below (version, config, log, etc). ### Description of the problem,screencshot would be good Hello, please match ip:port pairs for exclude these error (at now match only port) [here](https://github.com/MHSanaei/3x-ui/blob/329889ec006bdaed62609dbe012c950a87ea91c3/web/entity/entity.go#L83C1-L83C1) I use 3x-ui with nginx reverse-proxy (hide all in 80,443 port) In my setup ip:port used: ``` 12.34.56.78:80 - nginx (redirect to https) 12.34.56.78:443 - nginx (stream_ssl_preread, routes to xray,panel,subscription) 127.0.1.1:443 (xray-reality) 127.0.1.1:80 (panel) 127.0.1.2:80 (subscription) ``` It's absolutely correct, but can't be saved with error: `Modify Settings Fail: Sub and Web could not use same port: 80` At now I edit database directly, for made do work (and it's work as expected). If use different ports (8080 or other) subscription/panel generated links was broken: http://domain.example:8080/sub/1kdeji89387frgj59 Also good idea make checkbox "use https" to generated links (at now all QR http://) for case when 3x-ui behind reverse-proxy. ### Version of 3x-ui 3X: v1.7.5 Xray: v1.8.1 ### x-ui log reports or xray log Not need
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#574
No description provided.