重命名节点与网关入口包;添加构建和启动边缘节点的 PowerShell 脚本
This commit is contained in:
13
cmd/gateway/.env.example
Normal file
13
cmd/gateway/.env.example
Normal file
@@ -0,0 +1,13 @@
|
||||
# 应用配置
|
||||
APP_CTRL_PORT=18080
|
||||
APP_DATA_PORT=18081
|
||||
APP_WEB_PORT=8848
|
||||
APP_LOG_MODE=dev# dev | test
|
||||
|
||||
# 数据库配置
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_DATABASE=app
|
||||
DB_USERNAME=proxy
|
||||
DB_PASSWORD=proxy
|
||||
DB_TIMEZONE=Asia/Shanghai
|
||||
13
cmd/gateway/main.go
Normal file
13
cmd/gateway/main.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"proxy-server/gateway"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var app = gateway.New()
|
||||
var err = app.Run()
|
||||
if err != nil {
|
||||
println(err.Error())
|
||||
}
|
||||
}
|
||||
1
cmd/gateway/proxy.lock
Normal file
1
cmd/gateway/proxy.lock
Normal file
@@ -0,0 +1 @@
|
||||
rモ;鉦$4Nィzゥ?ヘ
|
||||
Reference in New Issue
Block a user