This commit is contained in:
Piotr Biernat 2024-12-05 16:42:42 +01:00
parent 05753d63b3
commit 949211cd6f
4 changed files with 11 additions and 7 deletions

View File

@ -1,13 +1,14 @@
{ {
"ID": "api-gateway", "ID": "gateway",
"Name": "api-gateway", "Name": "gw",
"Address": "__IP__", "Address": "__IP__",
"Tags": ["api-gateway", "gateway", "https", "traefik"],
"Port": 443, "Port": 443,
"Kind": "ingress-gateway",
"Check": { "Check": {
"HTTP": "http://__IP__:443/ping", "HTTP": "http://__IP__:8080/ping",
"Interval": "10s", "Interval": "5s",
"Timeout": "1s", "Timeout": "1s",
"Status": "passing",
"DeregisterCriticalServiceAfter": "10s" "DeregisterCriticalServiceAfter": "10s"
} }
} }

View File

@ -17,7 +17,7 @@ waitForService()
done done
} }
waitForService "api-registry:8500" waitForService "api-registry:8501"
# waitForService "api-registry:${API_REGISTRY_UI_PORT}" # waitForService "api-registry:${API_REGISTRY_UI_PORT}"
set -e set -e

View File

@ -4,6 +4,8 @@ tls:
keyFile: "/etc/traefik/certs/gw.key" keyFile: "/etc/traefik/certs/gw.key"
- certFile: "/etc/traefik/certs/gw.local.crt" - certFile: "/etc/traefik/certs/gw.local.crt"
keyFile: "/etc/traefik/certs/gw.key" keyFile: "/etc/traefik/certs/gw.key"
- certFile: "/etc/traefik/certs/eventbus.internal.crt"
keyFile: "/etc/traefik/certs/eventbus.key"
stores: stores:
default: default:
defaultCertificate: defaultCertificate:

View File

@ -33,7 +33,8 @@ entryPoints:
serversTransport: serversTransport:
insecureSkipVerify: true # dev only... insecureSkipVerify: true # dev only...
rootCAs: rootCAs:
- /etc/traefik/certs/gw.internal.crt # - /etc/traefik/certs/internalCA.crt
- /usr/local/share/ca-certificates/internalCA.crt
################################################################ ################################################################
ping: ping: