From fd82b51509b3b17944a405e0bdf5d4899cf325a0 Mon Sep 17 00:00:00 2001 From: infra Date: Thu, 21 Dec 2023 15:36:18 -0800 Subject: [PATCH] Remove unused nginx mount --- js/package.json | 2 +- js/src/cli/docker-compose.yaml | 12 ++--- js/src/cli/nginx.conf | 60 ------------------------ python/langsmith/cli/docker-compose.yaml | 12 ++--- python/langsmith/cli/nginx.conf | 60 ------------------------ python/pyproject.toml | 2 +- 6 files changed, 12 insertions(+), 136 deletions(-) delete mode 100644 js/src/cli/nginx.conf delete mode 100644 python/langsmith/cli/nginx.conf diff --git a/js/package.json b/js/package.json index 0dbc6de86..38c922629 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "langsmith", - "version": "0.0.52", + "version": "0.0.53", "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", "files": [ "dist/", diff --git a/js/src/cli/docker-compose.yaml b/js/src/cli/docker-compose.yaml index 345658102..50db74543 100644 --- a/js/src/cli/docker-compose.yaml +++ b/js/src/cli/docker-compose.yaml @@ -1,21 +1,19 @@ version: "3" services: langchain-playground: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-playground:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-playground:${_LANGSMITH_IMAGE_VERSION:-latest} ports: - 3001:3001 langchain-frontend: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-frontend-dynamic:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-frontend-dynamic:${_LANGSMITH_IMAGE_VERSION:-latest} ports: - 80:80 - volumes: - - ./nginx.conf:/etc/nginx/conf.d/default.conf depends_on: - langchain-backend - langchain-playground - langchain-hub langchain-backend: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-backend:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-backend:${_LANGSMITH_IMAGE_VERSION:-latest} environment: - PORT=1984 - LANGCHAIN_ENV=local_docker @@ -28,14 +26,14 @@ services: - langchain-db - langchain-redis langchain-queue: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-backend:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-backend:${_LANGSMITH_IMAGE_VERSION:-latest} environment: - LANGCHAIN_ENV=local_docker - LOG_LEVEL=warning - LANGSMITH_LICENSE_KEY=${LANGSMITH_LICENSE_KEY} entrypoint: "rq worker --with-scheduler -u redis://langchain-redis:6379 --serializer lc_database.queue.serializer.ORJSONSerializer --worker-class lc_database.queue.worker.Worker --connection-class lc_database.queue.connection.RedisRetry --job-class lc_database.queue.job.AsyncJob" langchain-hub: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainhub-backend:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainhub-backend:${_LANGSMITH_IMAGE_VERSION:-latest} environment: - PORT=1985 - LANGCHAIN_ENV=local_docker diff --git a/js/src/cli/nginx.conf b/js/src/cli/nginx.conf deleted file mode 100644 index caf5831e1..000000000 --- a/js/src/cli/nginx.conf +++ /dev/null @@ -1,60 +0,0 @@ -server { - listen 80; - server_name localhost; - - add_header Content-Security-Policy "frame-ancestors 'self'" always; - - location / { - root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } - - location ~ /api/playground/ { - rewrite /api/playground/(.*) /$1 break; - chunked_transfer_encoding off; - proxy_set_header Connection ''; - proxy_http_version 1.1; - proxy_buffering off; - proxy_cache off; - proxy_pass http://langchain-playground:3001; - } - - location = /api/playground { - rewrite /api/playground / break; - chunked_transfer_encoding off; - proxy_set_header Connection ''; - proxy_http_version 1.1; - proxy_buffering off; - proxy_cache off; - proxy_pass http://langchain-playground:3001; - } - - # Hub Routes - location ~ /api-hub { - rewrite /api-hub/(.*) /$1 break; - chunked_transfer_encoding off; - proxy_set_header Connection ''; - proxy_http_version 1.1; - proxy_buffering off; - proxy_cache off; - proxy_pass http://langchain-hub:1985; - } - - # Backend Routes - location ~ /api { - rewrite /api/(.*) /$1 break; - chunked_transfer_encoding off; - proxy_set_header Connection ''; - proxy_http_version 1.1; - proxy_buffering off; - proxy_cache off; - proxy_pass http://langchain-backend:1984; - } - -} diff --git a/python/langsmith/cli/docker-compose.yaml b/python/langsmith/cli/docker-compose.yaml index 345658102..50db74543 100644 --- a/python/langsmith/cli/docker-compose.yaml +++ b/python/langsmith/cli/docker-compose.yaml @@ -1,21 +1,19 @@ version: "3" services: langchain-playground: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-playground:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-playground:${_LANGSMITH_IMAGE_VERSION:-latest} ports: - 3001:3001 langchain-frontend: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-frontend-dynamic:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-frontend-dynamic:${_LANGSMITH_IMAGE_VERSION:-latest} ports: - 80:80 - volumes: - - ./nginx.conf:/etc/nginx/conf.d/default.conf depends_on: - langchain-backend - langchain-playground - langchain-hub langchain-backend: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-backend:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-backend:${_LANGSMITH_IMAGE_VERSION:-latest} environment: - PORT=1984 - LANGCHAIN_ENV=local_docker @@ -28,14 +26,14 @@ services: - langchain-db - langchain-redis langchain-queue: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-backend:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainplus-backend:${_LANGSMITH_IMAGE_VERSION:-latest} environment: - LANGCHAIN_ENV=local_docker - LOG_LEVEL=warning - LANGSMITH_LICENSE_KEY=${LANGSMITH_LICENSE_KEY} entrypoint: "rq worker --with-scheduler -u redis://langchain-redis:6379 --serializer lc_database.queue.serializer.ORJSONSerializer --worker-class lc_database.queue.worker.Worker --connection-class lc_database.queue.connection.RedisRetry --job-class lc_database.queue.job.AsyncJob" langchain-hub: - image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainhub-backend:${_LANGSMITH_IMAGE_VERSION-:latest} + image: langchain/${_LANGSMITH_IMAGE_PREFIX-}langchainhub-backend:${_LANGSMITH_IMAGE_VERSION:-latest} environment: - PORT=1985 - LANGCHAIN_ENV=local_docker diff --git a/python/langsmith/cli/nginx.conf b/python/langsmith/cli/nginx.conf deleted file mode 100644 index caf5831e1..000000000 --- a/python/langsmith/cli/nginx.conf +++ /dev/null @@ -1,60 +0,0 @@ -server { - listen 80; - server_name localhost; - - add_header Content-Security-Policy "frame-ancestors 'self'" always; - - location / { - root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } - - location ~ /api/playground/ { - rewrite /api/playground/(.*) /$1 break; - chunked_transfer_encoding off; - proxy_set_header Connection ''; - proxy_http_version 1.1; - proxy_buffering off; - proxy_cache off; - proxy_pass http://langchain-playground:3001; - } - - location = /api/playground { - rewrite /api/playground / break; - chunked_transfer_encoding off; - proxy_set_header Connection ''; - proxy_http_version 1.1; - proxy_buffering off; - proxy_cache off; - proxy_pass http://langchain-playground:3001; - } - - # Hub Routes - location ~ /api-hub { - rewrite /api-hub/(.*) /$1 break; - chunked_transfer_encoding off; - proxy_set_header Connection ''; - proxy_http_version 1.1; - proxy_buffering off; - proxy_cache off; - proxy_pass http://langchain-hub:1985; - } - - # Backend Routes - location ~ /api { - rewrite /api/(.*) /$1 break; - chunked_transfer_encoding off; - proxy_set_header Connection ''; - proxy_http_version 1.1; - proxy_buffering off; - proxy_cache off; - proxy_pass http://langchain-backend:1984; - } - -} diff --git a/python/pyproject.toml b/python/pyproject.toml index ff1f8ef28..51e84c0f1 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langsmith" -version = "0.0.73" +version = "0.0.74" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." authors = ["LangChain "] license = "MIT"