file-system/configs/config.yaml
向宁 ed47904a85 chore: initialize Kratos project skeleton, add proto config and Makefile
- Add Makefile with api/config/wire/build/run/test/clean targets
- Update buf.yaml with api, internal/conf, and third_party modules
- Update buf.gen.yaml with protobuf, grpc, and grpc-gateway plugins
- Add internal/conf/conf.proto (Kratos config schema: Bootstrap/Server/Data/Auth)
- Generate internal/conf/conf.pb.go via buf
- Add configs/config.yaml with HTTP/gRPC server, Postgres, S3, and auth settings
- Add third_party/google/api proto files (annotations, http)
- Remove old Gin-based layers: internal/api, internal/infrastructure/mediator,
  internal/middleware, internal/common, docs
- Update .gitignore to exclude server binary and bin/
2026-05-25 12:37:45 +08:00

22 lines
488 B
YAML

server:
http:
addr: 0.0.0.0:8080
timeout: 30s
grpc:
addr: 0.0.0.0:9000
timeout: 30s
data:
database:
driver: postgres
source: "postgres://postgres:postgres@localhost:5432/file_system?sslmode=disable"
s3:
endpoint: "http://192.168.1.154:9000"
access_key: "${RUSTFS_ACCESS_KEY_ID}"
secret_key: "${RUSTFS_SECRET_ACCESS_KEY}"
region: "us-east-1"
auth:
jwt_key: "RagJwtSecretKey2026MustBeAtLeast32CharsLong!"
grpc_addr: "rag-backend:50051"