mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 17:52:24 +00:00
Refactor configuration and update handling:
- Modify .luarc.json to include global Lua scripts. - Update Makefile to include LDFLAGS for versioning. - Enhance node.go to implement version checking and update handling. - Refactor Lua global variables in _globals.lua and echo.lua to use new structures. - Remove deprecated http.lua and update config.yaml for TLS and update settings. - Introduce new update.go for version management and update checking. - Add tests for version comparison in update_test.go. - Improve error handling in various server methods.
This commit is contained in:
24
config.yaml
24
config.yaml
@@ -1,7 +1,7 @@
|
||||
mode: "dev"
|
||||
|
||||
http_server:
|
||||
address: "localhost:8080"
|
||||
address: "0.0.0.0:8080"
|
||||
timeout: 3s
|
||||
idle_timeout: 30s
|
||||
api:
|
||||
@@ -11,8 +11,22 @@ http_server:
|
||||
- s2
|
||||
|
||||
tls:
|
||||
enabled: "true"
|
||||
cert_file: "./cert/server.crt"
|
||||
key_file: "./cert/server.key"
|
||||
enabled: true
|
||||
cert_file: "./cert/fullchain.pem"
|
||||
key_file: "./cert/privkey.pem"
|
||||
|
||||
com_dir: "com/"
|
||||
internal:
|
||||
meta-dir: "./.meta/"
|
||||
|
||||
com_dir: "com/"
|
||||
|
||||
|
||||
updates:
|
||||
enabled: true
|
||||
allow-auto-updates: true
|
||||
allow-updates: true
|
||||
allow-downgrades: false
|
||||
|
||||
check-interval: 1h
|
||||
repository_url: "https://repo.serve.lv/raw/go-sally"
|
||||
wanted-version: "latest-stable"
|
||||
Reference in New Issue
Block a user