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

NginxProxyManager反代后无法订阅 #65

Open
ghost opened this issue Sep 1, 2023 · 12 comments
Open

NginxProxyManager反代后无法订阅 #65

ghost opened this issue Sep 1, 2023 · 12 comments

Comments

@ghost
Copy link

ghost commented Sep 1, 2023

反代后 订阅链接里面的 "jar" : "http://xxxxx.xxx:端口/spring.jar", 只有域名没有端口无法订阅

@power721
Copy link
Owner

power721 commented Sep 1, 2023

你用域名加端口访问管理界面

@ghost
Copy link
Author

ghost commented Sep 1, 2023

您使用域名加端口访问管理界面

直接域名+4567 的确可以,不过想着直接暴露IP+4567端口是直接可以访问后台的web界面怕被搞,所以想着套层壳,或者有办法订阅端口和web端口不一样?

@power721
Copy link
Owner

power721 commented Sep 1, 2023

域名反代就不要加端口了。
修改管理界面的用户名和密码、开启安全订阅、强制登录,就安全了。

@diamondt5353
Copy link

一样

@diamondt5353
Copy link

https无法订阅

@power721
Copy link
Owner

power721 commented Sep 4, 2023

https无法订阅

在高级设置,开启:订阅域名支持HTTPS

@ghost
Copy link
Author

ghost commented Sep 4, 2023

https无法订阅

在高级设置,开启:订阅域名支持HTTPS

核心在于不怎么想暴露 IP:4567 到公网上,因为可以扫到+端口直接到web登录界面,所以才有nginx套壳。但是这样就无法订阅,打开订阅链接里面只有 域名不带端口。 所以是否考虑开发新增一个端口专门负责对外订阅。4567 就作为常规的web管理端口

@z4jst
Copy link

z4jst commented Sep 10, 2023

感觉如果replace支持jar的话,也可以。但是现在replace不对jar资源生效 9.10日版本

@backtracker
Copy link

反代后 订阅链接里面的 "jar" : "http://xxxxx.xxx:端口/spring.jar", 只有域名没有端口无法订阅

估计你的是非标准HTTPS端口, 需要在location / 中添加 proxy_set_header Host $host:端口号;

@kuaner
Copy link

kuaner commented Oct 11, 2023

client_max_body_size 0;
proxy_max_temp_file_size 0;
proxy_buffering off;
proxy_request_buffering off;
location / {
proxy_pass $forward_scheme://$server:$port;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $port;
proxy_set_header X-Forwarded-Method $request_method;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
proxy_set_header X-Forwarded-Uri $request_uri;
}

在NPM的Advance中添加上面这个

在alist-tvbox后台高级配置
开启:订阅域名支持HTTPS

即可

@z4jst
Copy link

z4jst commented Oct 11, 2023

client_max_body_size 0; proxy_max_temp_file_size 0; proxy_buffering off; proxy_request_buffering off; location / { proxy_pass $forward_scheme://$server:$port; proxy_set_header Host $http_host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Port $port; proxy_set_header X-Forwarded-Method $request_method; proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Original-URL $scheme://$http_host$request_uri; proxy_set_header X-Forwarded-Uri $request_uri; }

在NPM的Advance中添加这个

谢谢!!这个没问题!搞定了 谢谢。

@foxdodo
Copy link

foxdodo commented Dec 9, 2023

client_max_body_size 0; proxy_max_temp_file_size 0; proxy_buffering off; proxy_request_buffering off; location / { proxy_pass $forward_scheme://$server:$port; proxy_set_header Host $http_host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Port $port; proxy_set_header X-Forwarded-Method $request_method; proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Original-URL $scheme://$http_host$request_uri; proxy_set_header X-Forwarded-Uri $request_uri; }

在NPM的Advance中添加上面这个

在alist-tvbox后台高级配置 开启:订阅域名支持HTTPS

即可

建议写入帮助文档,毕竟很多人用nginx反代,家宽又不开放80 443端口,只能用非标的

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

6 participants