BingsanBingsan
Configuration

Server Configuration

Configure HTTP server settings for Bingsan

Server Configuration

Configure the HTTP server settings.

Options

server:
  host: 0.0.0.0
  port: 8181
  debug: false
  version: "0.1.0"
  read_timeout: 30s
  write_timeout: 30s
  idle_timeout: 120s

Reference

OptionTypeDefaultDescription
hoststring0.0.0.0IP address to bind to
portinteger8181Port to listen on
debugbooleanfalseEnable debug mode (verbose logging, stack traces)
versionstring0.1.0Server version reported in responses
read_timeoutduration30sMaximum time to read request
write_timeoutduration30sMaximum time to write response
idle_timeoutduration120sMaximum time for idle connections

Environment Variables

ICEBERG_SERVER_HOST=0.0.0.0
ICEBERG_SERVER_PORT=8181
ICEBERG_SERVER_DEBUG=false
ICEBERG_SERVER_READ_TIMEOUT=30s
ICEBERG_SERVER_WRITE_TIMEOUT=30s
ICEBERG_SERVER_IDLE_TIMEOUT=120s

Binding Address

All Interfaces

Bind to all network interfaces (default):

server:
  host: 0.0.0.0

Localhost Only

Bind only to localhost (more secure for development):

server:
  host: 127.0.0.1

Timeouts

Read Timeout

Maximum duration for reading the entire request, including the body.

server:
  read_timeout: 30s

Increase for large request bodies:

server:
  read_timeout: 5m  # For large metadata commits

Write Timeout

Maximum duration before timing out writes of the response.

server:
  write_timeout: 30s

Debug Mode

Enable debug mode for troubleshooting:

server:
  debug: true

In debug mode:

  • Stack traces are included in error responses
  • More verbose logging is enabled
  • Performance may be reduced

Do not enable debug mode in production.

Production Recommendations

server:
  host: 0.0.0.0
  port: 8181
  debug: false
  read_timeout: 60s
  write_timeout: 60s
  idle_timeout: 300s

On this page