当前位置: 首页 > news >正文

dify 配置域名https访问

cat /root/dify/docker/.env
# 控制台 API 地址
CONSOLE_API_URL=https://123.xyz# 控制台 Web 界面地址
CONSOLE_WEB_URL=https://123.xyz# 服务 API 地址
SERVICE_API_URL=https://123.xyz# 应用 API 地址
APP_API_URL=https://123.xyz# 应用 Web 界面地址
APP_WEB_URL=https://123.xyz# 文件服务地址
FILES_URL=https://123.xyz# ===== CORS 跨域配置 =====
# Web API 允许的跨域来源(支持 HTTPS 和 HTTP)
WEB_API_CORS_ALLOW_ORIGINS=https://123.xyz,http://123.xyz# 控制台允许的跨域来源(支持 HTTPS 和 HTTP)
CONSOLE_CORS_ALLOW_ORIGINS=https://123.xyz,http://123.xyz# ===== Nginx 配置 =====
# Nginx 服务器名称
NGINX_SERVER_NAME=123.xyz

拷贝证书

/root/dify/docker/nginx/ssl
dify.crt
dify.key
docker exec docker-nginx-1 cat /etc/nginx/conf.d/default.conf
server {listen 80;server_name 123.xyz;location /console/api {proxy_pass http://api:5001;include proxy.conf;}location /api {proxy_pass http://api:5001;include proxy.conf;}location /v1 {proxy_pass http://api:5001;include proxy.conf;}location /files {proxy_pass http://api:5001;include proxy.conf;}location /explore {proxy_pass http://web:3000;include proxy.conf;}location /e/ {proxy_pass http://plugin_daemon:5002;proxy_set_header Dify-Hook-Url $scheme://$host$request_uri;include proxy.conf;}location / {proxy_pass http://web:3000;include proxy.conf;}location /mcp {proxy_pass http://api:5001;include proxy.conf;}# placeholder for acme challenge location# placeholder for https config defined in https.conf.template# Please do not directly edit this file. Instead, modify the .env variables related to NGINX configuration.listen 443 ssl;
ssl_certificate /etc/ssl/dify.crt;
ssl_certificate_key /etc/ssl/dify.key;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
}
http://www.dtcms.com/a/490586.html

相关文章:

  • Fragment mWho 在registerForActivityResult 中作用
  • 告别插件堆砌!Neovim 配置“瘦身”实战:用 Mini.nvim 替换主流插件全过程
  • PyCharm 2025:最新使用图文教程!
  • 线性表之数组
  • 黄岩网站建设兼职无锡网站建设网络推广
  • 专业的食品行业网站开发叮当快药网站谁做的
  • Agent 时代的大模型演化:从 ChatGPT 到多智能体协作系统
  • uniapp uni.chooseImage+uni.uploadFile使用方法与详解
  • 云手机的魅力与优势
  • 关于 uni-app 与原生微信小程序中的生命周期 —— 一次“生命旅程”的解读
  • 方圆网通网站建设公司怎么做不用数据库的网站
  • uniapp 打开横竖屏。usb调试时可以横竖屏切换,但是打包发布后却不行?
  • 有些网站开发人员工具无反应老闵行小学排名
  • Ubuntu20.04安装Anbox安卓模拟器
  • aspx php哪个做门户网站好万秀服务不错的seo推广
  • 回文串问题
  • 【Winform】Gerber文件解析坐标工具代码
  • k8s 网络策略详解--图文篇
  • 伟淼科技深度解析过度营销—告别流量轰炸企业破解营销困局新路径
  • POM思想的理解与示例
  • 案例精选 | 某大型船舶制造集团安全运营服务实践
  • 复习总结最终版:C语言
  • react 无限画布难点和实现
  • 网站开发浏览器wordpress投票类主题
  • Qt_day2
  • DMXAPI |使用1个Key接入主流大模型
  • 三星企业网站建设ppt网站建设需要使用哪些设备
  • 23种设计模式——中介者模式 (Mediator Pattern)详解
  • iOS八股文之 RunLoop
  • zibbix