adjustment

This commit is contained in:
mr 2025-03-28 08:51:37 +01:00
parent 1d791316f2
commit ceae62de19
8 changed files with 17 additions and 11 deletions

View File

@ -6,8 +6,13 @@ build: clean
run: run:
bee run -gendoc=true -downdoc=true bee run -gendoc=true -downdoc=true
dev: purge:
bee generate routers && HTTPPORT=8088 bee run -gendoc=true -downdoc=true lsof -t -i:8088 | xargs kill | true
run-dev:
bee generate routers && bee run -gendoc=true -downdoc=true -runmode=prod
dev: purge run-dev
debug: debug:
bee run -downdebug -gendebug bee run -downdebug -gendebug
@ -27,4 +32,4 @@ publish-registry:
all: clean docker publish-kind publish-registry all: clean docker publish-kind publish-registry
.PHONY: build run clean docker publish-kind publish-registry .PHONY: build run clean docker publish-kind publish-registry

View File

@ -1,5 +1,5 @@
appname = oc-workflow appname = oc-workflow
httpport = 8080 httpport = 8088
runmode = dev runmode = dev
autorender = false autorender = false
copyrequestbody = true copyrequestbody = true

View File

@ -17,7 +17,10 @@ type VersionController struct {
// @Success 200 // @Success 200
// @router / [get] // @router / [get]
func (c *VersionController) GetAll() { func (c *VersionController) GetAll() {
c.Data["json"] = map[string]string{"version": "1"} c.Data["json"] = map[string]string{
"service": "oc-workflow",
"version": "1",
}
c.ServeJSON() c.ServeJSON()
} }

View File

@ -20,9 +20,9 @@ services:
- "traefik.http.routers.workflow.middlewares=workflow-rewrite" - "traefik.http.routers.workflow.middlewares=workflow-rewrite"
- "traefik.http.middlewares.workflow.forwardauth.address=http://oc-auth:8080/oc/forward" - "traefik.http.middlewares.workflow.forwardauth.address=http://oc-auth:8080/oc/forward"
networks: networks:
- catalog - oc
networks: networks:
catalog: oc:
external: true external: true

View File

@ -2,7 +2,5 @@
"MONGO_URL":"mongodb://mongo:27017/", "MONGO_URL":"mongodb://mongo:27017/",
"MONGO_DATABASE":"DC_myDC", "MONGO_DATABASE":"DC_myDC",
"BOOKING_PATH": ":8092", "BOOKING_PATH": ":8092",
"NATS_URL": "nats://nats:4222", "NATS_URL": "nats://nats:4222"
"HOSTNAME": "oc-workflow",
"PORT" : 8080
} }

BIN
help Executable file

Binary file not shown.

Binary file not shown.

View File

@ -3,5 +3,5 @@
"MONGO_DATABASE":"DC_myDC", "MONGO_DATABASE":"DC_myDC",
"BOOKING_PATH": ":8092", "BOOKING_PATH": ":8092",
"NATS_URL": "nats://localhost:4222", "NATS_URL": "nats://localhost:4222",
"port" : 8080 "port" : 8088
} }