Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

用Nginx反向代理报错:401 #450

Open
wuyb66 opened this issue Mar 16, 2024 · 2 comments
Open

用Nginx反向代理报错:401 #450

wuyb66 opened this issue Mar 16, 2024 · 2 comments

Comments

@wuyb66
Copy link

wuyb66 commented Mar 16, 2024

使用docker-compose安装,直接访问正常,参考下面配置之后访问报错
image

image

nginx 和next terminal log都没找到报错相关信息。

@aaro-n
Copy link

aaro-n commented Mar 26, 2024

@wuyb66

    location / {
       proxy_pass http://172.17.0.1:8088;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;

        proxy_connect_timeout 86400s;
        proxy_read_timeout 86400s;
        proxy_send_timeout 86400s;
     }

这是我的nginx配置,可以正常使用,你可以比照试试。

@wuyb66
Copy link
Author

wuyb66 commented Mar 27, 2024

@aaro-n 谢谢,我用location /也是可以的,但是我需要与其他应用集成,不能用/,映射到/terminal就会报错,应该是有些路径写死了

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

No branches or pull requests

2 participants