-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathconfig.toml
More file actions
68 lines (63 loc) · 2.95 KB
/
config.toml
File metadata and controls
68 lines (63 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# LogChef configuration (TOML).
#
# This file contains only essential bootstrap settings required to start LogChef.
# Runtime settings (AI, alerts, auth sessions, server frontend URL) are managed
# in the Admin UI and stored in the database.
#
# Values can be overridden via environment variables prefixed with LOGCHEF_.
# Use double underscores for nesting: LOGCHEF_SERVER__PORT=8125.
# -----------------------------------------------------------------------------
# Server (required)
# -----------------------------------------------------------------------------
[server]
# HTTP API port.
port = 8125
# Bind address (0.0.0.0 listens on all interfaces).
host = "0.0.0.0"
# HTTP server request timeout.
http_server_timeout = "30s"
# Frontend URL for auth redirects and UI links is managed in the Admin UI.
# For first boot with a separate frontend origin, set LOGCHEF_SERVER__FRONTEND_URL.
# -----------------------------------------------------------------------------
# SQLite (required)
# -----------------------------------------------------------------------------
[sqlite]
# Path to the SQLite database file (relative to the working directory).
path = "local.db"
# -----------------------------------------------------------------------------
# OpenID Connect (OIDC) (required)
# -----------------------------------------------------------------------------
[oidc]
# OIDC provider discovery URL.
provider_url = "http://localhost:5556/dex"
# Explicit auth/token endpoints (required even when discovery is available).
auth_url = "http://localhost:5556/dex/auth"
token_url = "http://localhost:5556/dex/token"
# OIDC client credentials for the web UI login flow.
client_id = "logchef"
# Dev-only secret. Replace this in production.
client_secret = "logchef-secret"
# CLI client ID for CLI authentication (public OIDC client, PKCE flow).
# The OIDC provider must allow loopback redirects:
# http://127.0.0.1:19876/callback ... 19878/callback
cli_client_id = "logchef-cli"
# Callback URL for OIDC authentication (must match provider config).
redirect_url = "http://localhost:8125/api/v1/auth/callback"
# OIDC scopes to request.
scopes = ["openid", "email", "profile"]
# -----------------------------------------------------------------------------
# Authentication (required)
# -----------------------------------------------------------------------------
[auth]
# Admin email addresses (required).
admin_emails = ["admin@logchef.internal"]
# Secret key for API token hashing (required; generate with: openssl rand -hex 32).
# Dev-only value. Replace this in production.
api_token_secret = "5679649c50fddda837449b77d9983ab5f8dba65878897e968a74e7061bf47677"
# -----------------------------------------------------------------------------
# Query Settings (optional)
# -----------------------------------------------------------------------------
[query]
# Maximum rows returned per query. Increase for large exports if your
# ClickHouse cluster can handle it. Default: 1000000 (1 million).
# max_limit = 1000000