用nginx代理DeepSeekHarness挂在域名下特定路径提供访问

命令参数:

--trusted-host 'yourhost.example.com'

--no-open

yourhost.example.com替换成实际域名

Nginx配置:

在http块内配置:

map http_upgrade connection_upgrade {

default upgrade;

'' close;

}

在server块内配置:

location = /dsh {

return 302 /dsh/;

}

location /dsh/ {

proxy_pass http://127.0.0.1:3080/;

proxy_redirect default;

proxy_set_header Host $http_host;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection $connection_upgrade;

proxy_read_timeout 3600s;

proxy_send_timeout 3600s;

proxy_buffering off;

}

location = /favicon.ico {

proxy_pass http://127.0.0.1:3080;

proxy_set_header Host $http_host;

}

访问

http://yourhost.example.com/dsh/

相关推荐
方便面不加香菜4 分钟前
Docker Volume -- 对照总结及综合实战案例操作演示
运维·docker·容器
爱勇宝8 分钟前
SSL 证书别再手动续了:acme.sh + Let's Encrypt + 云厂商 DNS 全自动实战
运维·服务器
CS_Zero40 分钟前
DeepSeek V4.1 Flash 1017 (Batch) 新手极速上手指南
开发语言·batch·deepseek
数据库小学妹1 小时前
数据库容量规划:四个数与扩容触发线
运维·数据库·后端
大模型真好玩3 小时前
大模型训练全流程实战指南实战篇(十八)——微调问答对数据构建技术
人工智能·agent·deepseek
我才是银古3 小时前
chat-demo 源码解析与 DeepSeek 全家桶 API 能力盘点
ai·demo·deepseek
去码头整点薯条983 小时前
NFS服务器
linux·运维·服务器
蜗牛一步步往上爬4 小时前
第一章 初识Linux shell
linux·运维·服务器
饿了吃洗衣凝珠5 小时前
DNS域名解析服务器
运维·服务器
新*6 小时前
Elasticsearch 索引别名入门:创建、路由、原子切换与几个常见误解
运维·后端·elasticsearch·索引别名