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",
"Name": "api-gateway",
"ID": "gateway",
"Name": "gw",
"Address": "__IP__",
"Tags": ["api-gateway", "gateway", "https", "traefik"],
"Port": 443,
"Kind": "ingress-gateway",
"Check": {
"HTTP": "http://__IP__:443/ping",
"Interval": "10s",
"HTTP": "http://__IP__:8080/ping",
"Interval": "5s",
"Timeout": "1s",
"Status": "passing",
"DeregisterCriticalServiceAfter": "10s"
}
}

View File

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

View File

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

View File

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