Proxy Settings

Basic Configuration

Configure basic Chat2API proxy server settings including port, bind address, and CORS.

Port Configuration

The proxy server listens for incoming API requests on the specified port.

SettingDefaultDescription
Port8080Proxy server port number

Ports below 1024 require admin/root privileges.

Changing Port

  1. Navigate to Proxy Settings > Basic Configuration
  2. Enter new port number (1-65535)
  3. Click Save Configuration
  4. Restart the proxy server

Bind Address

Configure which network interface the proxy binds to.

AddressDescription
127.0.0.1Accept local connections only (default)
0.0.0.0Accept connections on all interfaces
Specific IPBind to specific network interface

Use 127.0.0.1 for local access only, or 0.0.0.0 to allow network access.

CORS Settings

Cross-Origin Resource Sharing (CORS) allows web applications to send requests to the proxy.

Enable CORS

  1. Toggle Enable CORS option
  2. Configure allowed origins

CORS Origins

ValueDescription
*Allow all origins
http://localhost:3000Allow specific origin
MultipleComma-separated list

Configuration File

Settings are stored in ~/.chat2api/config.json:

{
  "proxyPort": 8080,
  "proxyHost": "127.0.0.1"
}

On this page