Skip to content

Commit

Permalink
Remove some commented out traefik configs for llm-service.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcjustin committed Oct 23, 2024
1 parent 519d21e commit f479c6b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,24 +110,16 @@ services:
image: ghcr.io/uwcirg/llm-wrap:${LLM_SERVICE_IMAGE_TAG:-latest}
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
#ports:
# - "5000:5000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.rule=Host(`llm-service.${BASE_DOMAIN}`)"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.tls=true"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt"
#- traefik.enable=true
#- traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.rule=Host(`llm-service.${BASE_DOMAIN}`)
#- traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.entrypoints=websecure
#- traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.tls=true
#- traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt
# add CORS middleware, configured to return `Access-Control-Allow-Origin: *`
# add CORS middleware, configured to return `Access-Control-Allow-Origin: *`
# NB accessControlAllowOrigin is deprecated, but not noted in docs
# https://github.com/traefik/traefik/issues/8796
- "traefik.http.middlewares.llm-service-${COMPOSE_PROJECT_NAME}-cors.headers.accessControlAllowOriginList=*"
# allow all verbs used by FHIR REST
- "traefik.http.middlewares.llm-service-${COMPOSE_PROJECT_NAME}-cors.headers.accessControlAllowMethods=HEAD,GET,OPTIONS,PATCH,POST,PUT,DELETE"
- "traefik.http.middlewares.llm-service-${COMPOSE_PROJECT_NAME}-cors.headers.accessControlAllowHeaders=Authorization,Origin,Content-Type,Accept"
- "traefik.http.routers.llm-service-${COMPOSE_PROJECT_NAME}.middlewares=llm-service-${COMPOSE_PROJECT_NAME}-cors"
Expand Down

0 comments on commit f479c6b

Please sign in to comment.