fix: replace instances of 127.0.0.1 to localhost (#8536)

* Replace instances of 127.0.0.1 to localhost

* fix some replace-all issues

* fix some replace-all issues

* update starterprojects

* Upgrade uvlock
This commit is contained in:
Jordan Frazier 2025-06-16 08:54:04 -07:00 committed by GitHub
commit b77351331d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 3959 additions and 5686 deletions

View file

@ -11,11 +11,11 @@ Uploading files to the **File management** system keeps your files in a central
## Upload a file
The **File management** system is available at the `/files` URL. For example, if you're running Langflow at the default `http://127.0.0.1:7860` address, the **File management** system is located at `http://127.0.0.1:7860/files`.
The **File management** system is available at the `/files` URL. For example, if you're running Langflow at the default `http://localhost:7860` address, the **File management** system is located at `http://localhost:7860/files`.
To upload a file from your local machine:
1. From the **My Files** window at `http://127.0.0.1:7860/files`, click **Upload**.
1. From the **My Files** window at `http://localhost:7860/files`, click **Upload**.
2. Select the file to upload.
The file is uploaded to Langflow.

View file

@ -43,7 +43,7 @@ To have more than one session in a single flow, pass a specific Session ID to a
To post a message to a flow with a specific Session ID with curl, enter the following command:
```bash
curl -X POST "http://127.0.0.1:7860/api/v1/run/$FLOW_ID" \
curl -X POST "http://localhost:7860/api/v1/run/$FLOW_ID" \
-H 'Content-Type: application/json' \
-d '{
"session_id": "custom_session_123",
@ -76,7 +76,7 @@ You can work with base64 images in the Playground in several ways:
This example sends a base64-encoded image to the Playground using curl:
```bash
curl -X POST "http://127.0.0.1:7860/api/v1/run/$FLOW_ID" \
curl -X POST "http://localhost:7860/api/v1/run/$FLOW_ID" \
-H 'Content-Type: application/json' \
-d '{
"session_id": "custom_session_123",

View file

@ -86,7 +86,7 @@ For example:
```
The **MCP Server** tab automatically includes the correct `PROJECT_NAME`, `LANGFLOW_SERVER_ADDRESS`, and `PROJECT_ID` values.
The default Langflow server address is `http://127.0.0.1:7860` (`http://127.0.0.1:7868` if using Langflow for Desktop).
The default Langflow server address is `http://localhost:7860` (`http://localhost:7868` if using Langflow for Desktop).
:::important
If your Langflow server [requires authentication](/configuration-authentication) ([`LANGFLOW_AUTO_LOGIN`](/environment-variables#LANGFLOW_AUTO_LOGIN) is set to `false`), you must include your Langflow API key in the configuration.
@ -201,12 +201,12 @@ You can use MCP Inspector to monitor your flows and get insights into how they a
For more information about configuring MCP Inspector, including specifying a proxy port, see the [MCP Inspector GitHub project](https://github.com/modelcontextprotocol/inspector).
2. Open a web browser and navigate to the MCP Inspector UI.
The default address is `http://127.0.0.1:6274`.
The default address is `http://localhost:6274`.
3. In the MCP Inspector UI, enter the connection details for your Langflow project's MCP server:
- **Transport Type**: Select **SSE**.
- **URL**: Enter the Langflow MCP server's `sse` endpoint. For example: `http://127.0.0.1:7860/api/v1/mcp/project/d359cbd4-6fa2-4002-9d53-fa05c645319c/sse`
- **URL**: Enter the Langflow MCP server's `sse` endpoint. For example: `http://localhost:7860/api/v1/mcp/project/d359cbd4-6fa2-4002-9d53-fa05c645319c/sse`
If you've [configured authentication for your MCP server](#authentication), fill out the following additional fields:
- **Transport Type**: Select **STDIO**.
@ -230,7 +230,7 @@ By default, Langflow isn't exposed to the public internet.
However, you can forward Langflow server traffic with a forwarding platform like [ngrok](https://ngrok.com/docs/getting-started/) or [zrok](https://docs.zrok.io/docs/getting-started).
The following procedure uses ngrok, but you can use any similar reverse proxy or forwarding platform.
This procedure also assumes that you're using the default Langflow listening address `http://127.0.0.1:7860` (`http://127.0.0.1:7868` if using Langflow for Desktop).
This procedure also assumes that you're using the default Langflow listening address `http://localhost:7860` (`http://localhost:7868` if using Langflow for Desktop).
1. Sign up for an [ngrok account](https://dashboard.ngrok.com/signup).