add service
This commit is contained in:
35
config/boot.yaml
Normal file
35
config/boot.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
logger:
|
||||
- name: smart-search-logger
|
||||
description: "Application logger for smart-search service"
|
||||
default: true
|
||||
zap:
|
||||
level: error
|
||||
development: false
|
||||
encoding: console
|
||||
outputPaths: ["stdout"]
|
||||
errorOutputPaths: ["stderr"]
|
||||
disableCaller: false
|
||||
disableStacktrace: false
|
||||
|
||||
grpc:
|
||||
- name: smart-search-service
|
||||
port: 9091
|
||||
enabled: true
|
||||
enableReflection: true
|
||||
enableRkGwOption: true
|
||||
loggerEntry: smart-search-logger
|
||||
eventEntry: smart-search-logger
|
||||
middleware:
|
||||
logging:
|
||||
enabled: true
|
||||
loggerEncoding: "console"
|
||||
loggerOutputPaths: ["stdout"]
|
||||
meta:
|
||||
enabled: true
|
||||
trace:
|
||||
enabled: true
|
||||
prometheus:
|
||||
enabled: true
|
||||
auth:
|
||||
enabled: false
|
||||
24
config/config.yaml.example
Normal file
24
config/config.yaml.example
Normal file
@@ -0,0 +1,24 @@
|
||||
database:
|
||||
host: ${DB_HOST:localhost}
|
||||
port: ${DB_PORT:5432}
|
||||
name: ${DB_NAME:b2b_search}
|
||||
user: ${DB_USER:postgres}
|
||||
password: ${DB_PASSWORD:password}
|
||||
ssl_mode: ${DB_SSL_MODE:disable}
|
||||
max_conns: ${DB_MAX_CONNS:25}
|
||||
min_conns: ${DB_MIN_CONNS:5}
|
||||
|
||||
ai:
|
||||
openai_key: ${OPENAI_API_KEY:}
|
||||
perplexity_key: ${PERPLEXITY_API_KEY:}
|
||||
|
||||
security:
|
||||
jwt_secret: ${JWT_SECRET:xM8KhJVkk28cIJeBo0306O2e6Ifni6tNVlcCMxDFAEc=}
|
||||
crypto_secret: ${CRYPTO_SECRET:xM8KhJVkk28cIJeBo0306O2e6Ifni6tNVlcCMxDFAEc=}
|
||||
|
||||
grpc:
|
||||
port: ${GRPC_PORT:9091}
|
||||
max_connections: ${GRPC_MAX_CONNS:100}
|
||||
|
||||
logging:
|
||||
level: ${LOG_LEVEL:info}
|
||||
Reference in New Issue
Block a user