diff --git a/entrypoint.sh b/entrypoint.sh index 4e20aa7..1083260 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -31,6 +31,8 @@ AUTH_HOST="${AUTH_HOST:-auth}" AUTH_PORT="${AUTH_PORT:-9004}" SEARCH_HOST="${SEARCH_HOST:-search}" SEARCH_PORT="${SEARCH_PORT:-9050}" +PROJECTOR_HOST="${PROJECTOR_HOST:-projector}" +PROJECTOR_PORT="${PROJECTOR_PORT:-9051}" MEDIA_HOST="${MEDIA_HOST:-media}" MEDIA_PORT="${MEDIA_PORT:-9006}" MANAGE_HOST="${MANAGE_HOST:-manage}" diff --git a/services/projector.router b/services/projector.router new file mode 100644 index 0000000..d42da22 --- /dev/null +++ b/services/projector.router @@ -0,0 +1,5 @@ + search: + rule: "PathPrefix(`/system/projector`)" + service: projector + entryPoints: + - main diff --git a/services/projector.service b/services/projector.service new file mode 100644 index 0000000..aedfb01 --- /dev/null +++ b/services/projector.service @@ -0,0 +1,6 @@ + search: + loadBalancer: + servers: + - url: "http://${PROJECTOR_HOST}:${PROJECTOR_PORT}" + # Forward the original Host header to the backend service + passHostHeader: true