-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
104 lines (93 loc) · 2.74 KB
/
Copy pathconfig.yaml.example
File metadata and controls
104 lines (93 loc) · 2.74 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# this is the single source of truth for configuration.
# to make it easier to config and not hardcoded, always put the variable here
# and call it using viper in your app
# for production, copy this file and change the name to config.yaml
# for test, copy this file and change the name to config.test.yaml
database:
sql:
protocol: "postgresql"
host: "localhost"
user: "myusername"
password: "password"
port: "5432"
name: "digihome"
sslmode: "disable"
llm:
# api_key is shared fallback for chat & embed when per-service key is empty
# can be overridden via env LLM_API_KEY or per-service LLM_CHAT_API_KEY / LLM_EMBED_API_KEY
# api_key: ""
embed:
endpoint: "http://localhost:11434/api/embed"
model: "bge-m3"
api_key: "" # env LLM_EMBED_API_KEY — Bearer token for OpenAI-compatible endpoints (e.g. https://api.openai.com/v1/embeddings)
chat:
endpoint: "http://localhost:11434/api/chat"
model: "qwen3.5:0.8b"
api_key: "" # env LLM_CHAT_API_KEY — Bearer token for OpenAI-compatible endpoints (e.g. https://api.openai.com/v1/chat/completions)
num_ctx: 16384
reserve_reply_tokens: 4096
top_k_history: 10
recent_messages: 5
top_k_documents: 3
max_tokens: 256
app:
base:
url: "https://localhost/api"
# name: "your_app_name"
http:
port: 8080
# this is an example. uncomment if your app connect to other services via grpc
# grpc:
# service:
# service_a: service_a:50051
# service_b: service_b:50051
valkey:
address: "localhost"
port: "6379"
username: "username"
password: "password"
nats:
protocol: "nats"
address: "localhost"
port: "4221"
credential:
user: "user"
password: "password"
connection_name: "your_service/app_name"
timeout: 10
# uncomment if you want to create example_stream
# and maybe consumer in your app. for example how to create, go to
# http://https://github.com/micros-template/notification-service/blob/main/cmd/server/subscriber.go
# or nats official documentation
# jetstream:
# notification:
# stream:
# name: "example_stream"
# description: "this is example stream"
# subject:
# global: "example_stream.>"
# specific: "example_stream.specific"
rustfs:
host: "localhost"
port: 9000
credential:
user: "ROOTUSER"
password: "CHANGEME123"
prometheus:
url: "https://localhost/prometheus"
server:
cors:
allow:
origins: "*"
methods: "GET,POST,PUT,DELETE,OPTIONS,PATCH"
headers: "Content-Type,Authorization,X-Requested-With,X-CSRF-Token,Accept,Origin,Cache-Control,X-File-Name,X-File-Type,X-File-Size"
credential: true
expose:
headers: "Content-Length,Content-Range"
max:
age: 86400
auth:
jwt:
issuer: "selfish-backend"
access_token_ttl_minutes: 15
refresh_token_ttl_days: 7