Get Started
Configuration
Configuration options for AI Studio gateway server
This document outlines the various options available for configuring AI Studio.
For ease of use and clarity, we recommend naming the configuration file config.yml
Sample config file (config.yml)
app:
host: 0.0.0.0
port: 8080
log:
json: false
redis:
host: localhost
port: 6379
postgres:
driver: postgres
url: postgres://aistudio@localhost:5432/aistudio?sslmode=disable
max_idle_conns: 10
max_open_conns: 10
conn_max_life_time: 1m0s
max_query_timeout: 1s
ratelimiter:
enabled: true
type: sliding_window
duration_in_seconds: 100
number_of_requests: 5000
ingester:
enabled: true
provider: clickhouse
clickhouse:
connection_url: clickhouse://localhost:9000/default
table: token
influx3:
host: host
token: token
organization: organization
database: database
measurement: measurement
Gateway Configuration
app
Object
Configure the application gateway config
Example:
app:
host: localhost
port: 8080
Redis Configuration
redis
Object
Configure the redis database connection details to connect with AI studio
Example:
redis:
host: localhost
port: 6379
username: username
password: password
Postgress Configuration
redis
Object
Configure the postgres database connection details to connect with AI studio
Example:
redis:
driver: postgres
url: postgres://aistudio@localhost:5432/aistudio?sslmode=disable
max_idle_conns: 10
max_open_conns: 10
conn_max_life_time: 1m0s
max_query_timeout: 1s
Was this page helpful?