diff --git a/.gitignore b/.gitignore index 722d5e7..d353ed6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .vscode + +api-gateway/plugins/src/git.pbiernat.dev/traefik/plugin-egommerce-auth \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7cf439d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "api-gateway/plugins/src/git.pbiernat.dev/traefik/plugin-egommerce-auth"] + path = api-gateway/plugins/src/git.pbiernat.dev/traefik/plugin-egommerce-auth + url = git@git.pbiernat.dev:traefik/plugin-egommerce-auth.git diff --git a/api-gateway/entrypoint.sh b/api-gateway/entrypoint.sh index 4217125..44d45c7 100755 --- a/api-gateway/entrypoint.sh +++ b/api-gateway/entrypoint.sh @@ -15,6 +15,7 @@ waitForService() } waitForService "api-registry:8500" +# waitForService "api-registry:${API_REGISTRY_UI_PORT}" set -e diff --git a/api-gateway/etc/tls.yml b/api-gateway/etc/tls.yml index 4ac9ae6..73eb169 100644 --- a/api-gateway/etc/tls.yml +++ b/api-gateway/etc/tls.yml @@ -1,9 +1,9 @@ tls: certificates: - certFile: /etc/traefik/certs/client.cert - keyFile: /etc/traefik/certs/client.key + certFile: /etc/traefik/certs/gateway.pem + keyFile: /etc/traefik/certs/gateway.key stores: default: defaultCertificate: - certFile: /etc/traefik/certs/client.cert - keyFile: /etc/traefik/certs/client.key + certFile: /etc/traefik/certs/gateway.pem + keyFile: /etc/traefik/certs/gateway.key diff --git a/api-gateway/etc/traefik.yml b/api-gateway/etc/traefik.yml index d8d677e..b4ab85b 100644 --- a/api-gateway/etc/traefik.yml +++ b/api-gateway/etc/traefik.yml @@ -79,3 +79,5 @@ experimental: localPlugins: requestid: moduleName: "git.pbiernat.dev/traefik/plugin-requestid" + auth: + moduleName: "git.pbiernat.dev/traefik/plugin-egommerce-auth"