From c96f960c57dec4513e4a91b0060bb5efe8a04bbe Mon Sep 17 00:00:00 2001 From: Jussi Hallila Date: Thu, 5 Dec 2024 11:57:57 +0100 Subject: [PATCH] Use subdomain isolation by default on GHES broker. --- dockerfiles/github-enterprise/accept.json | 4 ++-- dockerfiles/github-enterprise/start | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dockerfiles/github-enterprise/accept.json b/dockerfiles/github-enterprise/accept.json index 9285abf..5b933d6 100644 --- a/dockerfiles/github-enterprise/accept.json +++ b/dockerfiles/github-enterprise/accept.json @@ -18,8 +18,8 @@ }, { "method": "GET", - "path": "/raw/*", - "origin": "${GHES_URL}", + "path": "/*", + "origin": "${GHES_RAW_URL}", "auth": { "scheme": "token", "token": "${GHES_TOKEN}" diff --git a/dockerfiles/github-enterprise/start b/dockerfiles/github-enterprise/start index a97f477..6c824dc 100755 --- a/dockerfiles/github-enterprise/start +++ b/dockerfiles/github-enterprise/start @@ -4,6 +4,10 @@ if [ -z "GHES_URL"]; then echo "You must provide GHES_URL" exit 1 fi +if [ -z "GHES_RAW_URL"]; then + echo "You must provide GHES_RAW_URL" + exit 1 +fi if [ -z "GHES_TOKEN"]; then echo "You must provide GHES_TOKEN"