ing
This commit is contained in:
parent
27a23519ed
commit
01d39c7d64
|
@ -9,7 +9,7 @@ ENV APP_CONFIG_PATH="${APP_HOME}/config" \
|
|||
PATH="$PATH:${APP_HOME}/bin"
|
||||
|
||||
ADD dist/${APP_NAME} ${APP_HOME}/bin/
|
||||
ADD _docker/bin/*.sh ${APP_HOME}/bin/
|
||||
ADD build/docker/bin/*.sh ${APP_HOME}/bin/
|
||||
|
||||
RUN apk add --no-cache curl \
|
||||
&& chmod +x ${APP_HOME}/bin/*.sh \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"server": {
|
||||
"name": "Gateway Web APP",
|
||||
"name": "Gateway WebApp",
|
||||
"network": "tcp4",
|
||||
"addr": ":80",
|
||||
"tls": false,
|
||||
|
@ -38,8 +38,8 @@
|
|||
}
|
||||
},
|
||||
"servlets": {
|
||||
"web": {
|
||||
"entry": "/web",
|
||||
"webapp": {
|
||||
"entry": "/webapp",
|
||||
"socket": {
|
||||
"maxMessageSize": 8192,
|
||||
"writeTimeout": 0,
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"server": {
|
||||
"name": "Gateway Web APP",
|
||||
"name": "Gateway WebApp",
|
||||
"network": "tcp4",
|
||||
"addr": ":19090",
|
||||
"tls": false,
|
||||
|
@ -38,8 +38,8 @@
|
|||
}
|
||||
},
|
||||
"servlets": {
|
||||
"web": {
|
||||
"entry": "/web",
|
||||
"webapp": {
|
||||
"entry": "/webapp",
|
||||
"socket": {
|
||||
"maxMessageSize": 8192,
|
||||
"writeTimeout": 0,
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package servlet
|
||||
|
||||
import (
|
||||
"git.loafle.net/overflow/overflow_gateway_webapp/servlet/web"
|
||||
"git.loafle.net/overflow/overflow_gateway_webapp/servlet/webapp"
|
||||
oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
|
||||
)
|
||||
|
||||
func ServletInit(sh oogws.ServerHandler) {
|
||||
web.ServletInit(sh)
|
||||
webapp.ServletInit(sh)
|
||||
}
|
||||
|
||||
func ServletDestroy() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package web
|
||||
package webapp
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -1,4 +1,4 @@
|
|||
package web
|
||||
package webapp
|
||||
|
||||
import (
|
||||
"git.loafle.net/commons_go/websocket_fasthttp/websocket"
|
|
@ -1,4 +1,4 @@
|
|||
package web
|
||||
package webapp
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -10,7 +10,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
Name = "web"
|
||||
Name = "webapp"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -20,7 +20,7 @@ var (
|
|||
func ServletInit(sh oogws.ServerHandler) {
|
||||
cfg = oogwc.Config.Servlets[Name]
|
||||
if nil == cfg {
|
||||
logging.Logger().Panic(fmt.Sprintf("Webapp: config of servlet[%s] is not exist", Name))
|
||||
logging.Logger().Panic(fmt.Sprintf("WebApp: config of servlet[%s] is not exist", Name))
|
||||
}
|
||||
|
||||
rpcGH := newGatewayRPCHandler()
|
Loading…
Reference in New Issue
Block a user