mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-05 07:12:25 +00:00
- Removed obsolete files: `hanle_multi.go`, `logger.go`, `handle_com.go`, `handle_list.go`, `server.go`, and `utils.go` from the `general_server` and `sv1` packages. - Introduced new implementations for the `GeneralServer` and `HandlerV1` in the `core` package, enhancing the overall architecture. - Updated the `go.mod` and `go.sum` files to include new dependencies. - Added a new configuration structure in `config.yaml` and `config.go` for better management of application settings. - Implemented a Lua command handling mechanism in `handle_com.go` and `handle_list.go` for improved command execution. - Enhanced logging capabilities with a new logger setup in `logger.go`. - Added a new Lua script `http.lua` for handling HTTP requests.
18 lines
257 B
YAML
18 lines
257 B
YAML
mode: "dev"
|
|
|
|
http_server:
|
|
address: "localhost:8080"
|
|
timeout: 3s
|
|
idle_timeout: 30s
|
|
api:
|
|
latest-version: v1
|
|
layers:
|
|
- b1
|
|
- s2
|
|
|
|
tls:
|
|
enabled: "true"
|
|
cert_file: "./cert/server.crt"
|
|
key_file: "./cert/server.key"
|
|
|
|
com_dir: "com/" |