Files
base/config.yml
2026-04-10 18:25:21 +03:30

114 lines
2.0 KiB
YAML

environment: local
debug: true
rabbitmq:
host: localhost
port: 5678
user: root
password: root
vhost: /
max_retry_attempts: 3
max_connections: 10
max_channels: 100
connection_timeout: 30s
heartbeat_interval: 10s
reconnect_delay: 1s
max_reconnect_delay: 30s
reconnect_attempts: 5
enable_auto_reconnect: true
log_level: DEBUG
prefetch_count: 1
retry_ttl: 10s
database:
user: base
password: base123
ro_user: base
ro_password: base123
host: localhost
port: "3306"
name: base
max_idle_conns: 3
max_open_conns: 8
ro_max_idle_conns: 3
ro_max_open_conns: 8
conn_max_idle_time: "5m"
conn_max_lifetime: "30m"
pg_database:
host: localhost
port: 5430
user: alinmeuser
password: password
name: alinmedb
ssl_mode: disable
# host: alinme-db.postgres.database.azure.com
# port: 5432
# user: alinmeadmin
# password: X5TyF89Ucm5Q7RpQJ13Iffg
# name: alinmedb
# ssl_mode: require
connection_timeout: 1m
query_timeout: 60s
pool_config:
max_conn: 20
min_conn: 5
max_conn_lifetime: 5m
max_conn_idle_time: 30m
migrations:
enabled: true
dir: ./database/migrations
redis:
host: localhost
port: "6379"
password: "zSdnptloZCsps0EoXqqS"
database: 1
cache:
auth:
enabled: true
ttl: "5m"
prefix: "auth"
discount:
enabled: true
ttl: "7m"
prefix: "discount"
phub:
enabled: true
ttl: "1h"
prefix: "phub"
database:
enabled: true
ttl: "10m"
prefix: "db"
oauth:
mock:
enabled: true
base_url: http://localhost:9999
client_id: mock-client
client_secret: mock-secret
redirect_url: http://localhost:8101/api/v1/auth/oauth/callback/mock
google:
client_id: ""
client_secret: ""
redirect_url: ""
github:
client_id: ""
client_secret: ""
redirect_url: ""
server:
host: 0.0.0.0
port: "8080"
barcodemapping:
host: "localhost"
port: "8093"
syslog:
host: "localhost"
port: "514"
protocol: "udp"
log_level: "DEBUG"