diff --git a/Makefile b/Makefile index fa5708c..53e4637 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GORUN = $(GOCMD) run GOTEST = $(GOCMD) test DOCKER = docker -COMPOSE = $(DOCKER) compose +COMPOSE = $(DOCKER)-compose PROJECT_DIR = cmd MAIN = main.go @@ -51,4 +51,4 @@ test-routes: curl "${HOST}/products" curl "${HOST}/orders" curl "${HOST}/protected" - curl "${HOST}/external-weather" \ No newline at end of file + curl "${HOST}/external-weather" diff --git a/config/gateway.yaml b/config/gateway.yaml index 2d8b791..2732a77 100644 --- a/config/gateway.yaml +++ b/config/gateway.yaml @@ -4,20 +4,6 @@ connections: routes: - - path: products - url: http://services:9001 - rate-limit: - zone: 10 - rate: 5 - auth: false - - - path: orders - url: http://services:9002 - rate-limit: - zone: 10 - rate: 5 - auth: false - - path: protected url: http://services:9003 rate-limit: diff --git a/docker-compose.yml b/docker-compose.yml index 2870a86..a5fd0e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -170,6 +170,8 @@ services: - GF_PATHS_PROVISIONING=/etc/grafana/provisioning - GF_AUTH_ANONYMOUS_ENABLED=true - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin + - GF_SERVER_ROOT_URL=http://synchro-accelerator.com/grafana/ + - GF_SERVER_SERVE_FROM_SUB_PATH=true depends_on: - gateway entrypoint: @@ -193,7 +195,7 @@ services: ports: - "3000:3000" healthcheck: - test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/api/health || exit 1" ] + test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/grafana/api/health || exit 1" ] interval: 10s timeout: 5s retries: 5 @@ -286,4 +288,4 @@ services: image: mingrammer/flog command: -f json -d 200ms -l networks: - - loki \ No newline at end of file + - loki diff --git a/management/static/auth.html b/management/static/auth.html index 8db10e2..a8bee00 100644 --- a/management/static/auth.html +++ b/management/static/auth.html @@ -11,7 +11,7 @@ Home Signup/Login Config File - Dashboard + Dashboard Docs @@ -46,4 +46,4 @@