Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在账号抓包界面中,生成二维码地址有误 #195

Open
lfire opened this issue Apr 26, 2023 · 4 comments
Open

在账号抓包界面中,生成二维码地址有误 #195

lfire opened this issue Apr 26, 2023 · 4 comments

Comments

@lfire
Copy link

lfire commented Apr 26, 2023

image
当使用如图上的地址访问nohost的账号抓包界面时,界面上的【生成二维码】功能,相应的地址生成有错误。

相应的部署环境是:
服务器端部署了一个nohost,对外网提供服务的方式是会配置一个相应域名,同时,以nginx反代的方式,对外提供界面的访问服务,如我的配置中,nohost的实际端口是3399,而我对外的是444,这一转换是ng配置的反代。
当这样配置后,界面可以通过444端口正常访问和使用,但就是【生成二维码】这个功能没有取到正确的端口号值。

@lfire
Copy link
Author

lfire commented Apr 26, 2023

const REDIRECT_URL = `${URL_DIR.replace(/:\d+/, '')}redirect`;

这个看起来是特意去除了端口号,不知道当时是什么原因

@avwo
Copy link
Collaborator

avwo commented Apr 26, 2023

配代理后可以不用端口

@lfire
Copy link
Author

lfire commented Apr 26, 2023

@avwo 我这边的配置是,代理的端口是3399,管理端的界面是通过ng反代到3399的,并指定有一个管理端的访问域名,而且ng监听的是444,所以,如果没有444的端口,整体流量到不了ng,我大概只能通过代理上增加一条规则,转发到444端口了,理论上,我认为保留端口号更为合理

@avwo
Copy link
Collaborator

avwo commented Apr 26, 2023

下个版本改回来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants