安装XRAY的nginx咋配置一个端口访问docker中的alist
安装的八合一脚本,在机器上安装了docker,安装了alist, 端口是5244/5244, 用ip:5244能访问,本机已经用jp5.sssdtm.com搞了个伪装站,
怎么修改配置 实现 域名:5244 直接访问呢,用chatGPT搞半天没成功,求助大佬
server {
listen 127.0.0.1:31300;
server_name _;
return 403;
}
server {
listen 127.0.0.1:31302 http2 so_keepalive=on;
server_name jp5.sssdtm.com;
root /usr/share/nginx/html/;
client_header_timeout 1071906480m;
keepalive_timeout 1071906480m;
location ~ ^/s/(clashMeta|default|clashMetaProfiles)/(.*) {
default_type 'text/plain; charset=utf-8';
alias /etc/v2ray-agent/subscribe/$1/$2;
}
location /tdccgrpc {
if ($content_type !~ "application/grpc") {
return 404;
}
client_max_body_size 0;
grpc_set_header X-Real-IP $proxy_add_x_forwarded_for;
client_body_timeout 1071906480m;
grpc_read_timeout 1071906480m;
grpc_pass grpc://127.0.0.1:31301;
}
location /tdcctrojangrpc {
if ($content_type !~ "application/grpc") {
return 404;
}
client_max_body_size 0;
grpc_set_header X-Real-IP $proxy_add_x_forwarded_for;
client_body_timeout 1071906480m;
grpc_read_timeout 1071906480m;
grpc_pass grpc://127.0.0.1:31304;
}
location / {
add_header Strict-Transport-Security "max-age=15552000; preload" always;
}
}
server {
listen 127.0.0.1:31300;
server_name jp5.sssdtm.com;
root /usr/share/nginx/html/;
location ~ ^/s/(clashMeta|default|clashMetaProfiles)/(.*) {
default_type 'text/plain; charset=utf-8';
alias /etc/v2ray-agent/subscribe/$1/$2;
}
location / {
add_header Strict-Transport-Security "max-age=15552000; preload" always;
}
}
怎么修改配置 实现 域名:5244 直接访问呢,用chatGPT搞半天没成功,求助大佬
server {
listen 127.0.0.1:31300;
server_name _;
return 403;
}
server {
listen 127.0.0.1:31302 http2 so_keepalive=on;
server_name jp5.sssdtm.com;
root /usr/share/nginx/html/;
client_header_timeout 1071906480m;
keepalive_timeout 1071906480m;
location ~ ^/s/(clashMeta|default|clashMetaProfiles)/(.*) {
default_type 'text/plain; charset=utf-8';
alias /etc/v2ray-agent/subscribe/$1/$2;
}
location /tdccgrpc {
if ($content_type !~ "application/grpc") {
return 404;
}
client_max_body_size 0;
grpc_set_header X-Real-IP $proxy_add_x_forwarded_for;
client_body_timeout 1071906480m;
grpc_read_timeout 1071906480m;
grpc_pass grpc://127.0.0.1:31301;
}
location /tdcctrojangrpc {
if ($content_type !~ "application/grpc") {
return 404;
}
client_max_body_size 0;
grpc_set_header X-Real-IP $proxy_add_x_forwarded_for;
client_body_timeout 1071906480m;
grpc_read_timeout 1071906480m;
grpc_pass grpc://127.0.0.1:31304;
}
location / {
add_header Strict-Transport-Security "max-age=15552000; preload" always;
}
}
server {
listen 127.0.0.1:31300;
server_name jp5.sssdtm.com;
root /usr/share/nginx/html/;
location ~ ^/s/(clashMeta|default|clashMetaProfiles)/(.*) {
default_type 'text/plain; charset=utf-8';
alias /etc/v2ray-agent/subscribe/$1/$2;
}
location / {
add_header Strict-Transport-Security "max-age=15552000; preload" always;
}
}