GithubHelp home page GithubHelp logo

Comments (15)

power721 avatar power721 commented on June 18, 2024

nginx反代配置有问题。

from alist-tvbox.

power721 avatar power721 commented on June 18, 2024

可以加一个跳转

server {
    if ($host = xxx.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    server_name xxx.com;

    listen 80;
    return 404; # managed by Certbot
}

from alist-tvbox.

aries1998 avatar aries1998 commented on June 18, 2024

我这种通过cf反代的只支持https的没法这么改,不过这个问题通过脚本处理下生成个json文件倒可以解决

另外有个必须改代码的问题是这个返回豆瓣数据的cgi, 返回数据里面应该是https,现在都是http

image

image

from alist-tvbox.

power721 avatar power721 commented on June 18, 2024

那需要加一个配置项,开启https

from alist-tvbox.

BenzLeung avatar BenzLeung commented on June 18, 2024

用这个配置的前提是服务器能正常用80和443,域名后面不用加端口号。而我这是普通家用宽带,开不了80和443,所以域名后面加了 :8888

我用的不是nginx而是caddy,nginx不知道但是caddy无法在一个端口上同时提供http和https服务。

是不是等待大佬的下一版本就好了呢?

from alist-tvbox.

power721 avatar power721 commented on June 18, 2024

新版本,在设置页面 -> 高级设置里面开启HTTPS。

wget https://d.har01d.cn/update_xiaoya.sh -O update_xiaoya.sh && sh ./update_xiaoya.sh -t native

from alist-tvbox.

aries1998 avatar aries1998 commented on June 18, 2024

docker repo上的镜像不对吧, 对比了下docker repo里面和本地的镜像,是一致的, 但是那个配置页面一直提示有新版本,也确实看不到你说的这个配置

对了,我是portainer里面装的,没用脚本,按理来说也不影响,看了一键脚本,也没看到会去非docker的repo去拉镜像。

image

顺便提个建议,外网访问如果只用一个域名的话,nginx需要配置很多路径的转发(sub/repo/token/image.....) ,因为后端是4567/5244这两个端口,最好4567上面统一处理下,前端nginx只转发到4567, 你这里把/dav和/的转发到xiaoya的端口去。

from alist-tvbox.

BenzLeung avatar BenzLeung commented on June 18, 2024

新版本,在设置页面 -> 高级设置里面开启HTTPS。

wget https://d.har01d.cn/update_xiaoya.sh -O update_xiaoya.sh && sh ./update_xiaoya.sh -t native

这个 -t native 版本运行不了,报错信息:

/lib/ld-musl-x86_64.so.1: atv: Not a valid dynamic program
The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
Please rebuild the executable with an appropriate setting of the -march option.2023-08-01T09:44:53.610610533Z replace token? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
(EOF or read error, treating as "[N]one" ...)

这几行信息循环了好多次。

换回来 -t latest 就正常了。

另外我认真阅读了大佬你的文档,发现了定制json替换功能:

{
    "replace": {
      "http://我的域名:8888/spring.jar": "https://我的域名:8888/spring.jar" 
    },
    "sites-blacklist": ["说明1","说明2", "说明3","说明4","公告", "ext_live_protocol", "cc"],
    "sites": [
     
    ]
}

但是似乎 replace 对jar字段不生效?如果能让它生效,也就解决问题了,而且还能同时兼容内网 http://192.168.1.x:4567 和外网 https://域名:8888 访问。

from alist-tvbox.

power721 avatar power721 commented on June 18, 2024

native只支持Linux平台,不支持arm平台

from alist-tvbox.

BenzLeung avatar BenzLeung commented on June 18, 2024

我的不是arm,是win11+docker,x64 [捂脸]

from alist-tvbox.

power721 avatar power721 commented on June 18, 2024

win也需要装Linux虚拟机

from alist-tvbox.

BenzLeung avatar BenzLeung commented on June 18, 2024

-t native 死活搞不起来,我还是等待 latest 吧,不着急。

或者大佬可以先让定制json替换 replace 功能支持jar字段吗?

from alist-tvbox.

power721 avatar power721 commented on June 18, 2024

试试dev版本

from alist-tvbox.

BenzLeung avatar BenzLeung commented on June 18, 2024

dev版本成功了,感谢大佬。

from alist-tvbox.

power721 avatar power721 commented on June 18, 2024

已经合并到latest

from alist-tvbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.