From 86d8b19ae3e808a6775ad376c801fc854d67f82e Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Thu, 30 May 2024 19:37:06 +0800 Subject: [PATCH] Refactor traefik.yml to fix routing rules for chat and bot subdomains --- compose/deploy-librechat.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose/deploy-librechat.yml b/compose/deploy-librechat.yml index c9f25ce..3d2679d 100644 --- a/compose/deploy-librechat.yml +++ b/compose/deploy-librechat.yml @@ -27,6 +27,7 @@ services: - MEILI_HOST=http://meilisearch:7700 - RAG_PORT=${RAG_PORT:-8000} - RAG_API_URL=http://rag_api:${RAG_PORT:-8000} + - DOMAINNAME=${DOMAINNAME} volumes: - type: bind source: ./.env @@ -40,7 +41,7 @@ services: - "traefik.enable=true" - "traefik.http.routers.librechat.entrypoints=web-secure" - "traefik.http.routers.librechat.rule=Host(`chat.${DOMAINNAME}`) || Host(`bot.${DOMAINNAME}`)" - - "traefik.http.routes.librechat.middlewares=csrf@file" + - "traefik.http.routers.librechat.middlewares=csrf@file" - "traefik.http.routers.librechat.tls.certresolver=letsencrypt" - "traefik.http.routers.librechat.service=librechat_app" - "traefik.http.services.librechat_app.loadbalancer.server.port=${PORT}"