From 8550d685d00d8a44c583464382a106d6c054af4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=A4usler?= Date: Tue, 3 Feb 2026 23:37:41 +0100 Subject: [PATCH 1/3] made DEFAULT_ACTIONS_RESULTS_URL configurable --- README.md | 1 + lib/schemas.ts | 2 ++ routes/[...path].ts | 7 +++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9030701..f9b2ae2 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ services: - '3000:3000' environment: API_BASE_URL: http://localhost:3000 + DEFAULT_ACTIONS_RESULTS_URL: https://results-receiver.actions.githubusercontent.com STORAGE_DRIVER: filesystem STORAGE_FILESYSTEM_PATH: /data/cache DB_DRIVER: sqlite diff --git a/lib/schemas.ts b/lib/schemas.ts index ef6e6fb..08cf864 100644 --- a/lib/schemas.ts +++ b/lib/schemas.ts @@ -57,6 +57,8 @@ export const envDbDriverSchema = type.or( export const envBaseSchema = type({ 'API_BASE_URL': 'string.url', + 'DEFAULT_ACTIONS_RESULTS_URL': + "string.url = 'https://results-receiver.actions.githubusercontent.com'", 'CACHE_CLEANUP_OLDER_THAN_DAYS': 'number = 90', 'DISABLE_CLEANUP_JOBS?': 'boolean', 'DEBUG?': 'boolean', diff --git a/routes/[...path].ts b/routes/[...path].ts index 4404f9b..1806232 100644 --- a/routes/[...path].ts +++ b/routes/[...path].ts @@ -1,8 +1,7 @@ +import { env } from '~/lib/env' import { logger } from '~/lib/logger' -const DEFAULT_ACTIONS_RESULTS_URL = 'https://results-receiver.actions.githubusercontent.com' - export default defineEventHandler(async (event) => { - logger.debug('proxying unknown path', event.path, 'to', DEFAULT_ACTIONS_RESULTS_URL) - return proxyRequest(event, `${DEFAULT_ACTIONS_RESULTS_URL}${event.path}`) + logger.debug('proxying unknown path', event.path, 'to', env.DEFAULT_ACTIONS_RESULTS_URL) + return proxyRequest(event, `${env.DEFAULT_ACTIONS_RESULTS_URL}${event.path}`) }) From 2e5c04946ae22c6b6a094092f633db0ed533c7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=A4usler?= Date: Tue, 3 Feb 2026 23:46:39 +0100 Subject: [PATCH 2/3] test fixed --- tests/setup.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/setup.ts b/tests/setup.ts index 447d24a..9f95dec 100644 --- a/tests/setup.ts +++ b/tests/setup.ts @@ -26,6 +26,7 @@ const env = createEnv({ const TESTING_ENV_BASE = { API_BASE_URL: 'http://localhost:3000', + DEFAULT_ACTIONS_RESULTS_URL: 'results-receiver.actions.xxxxxx.ghe.com', RUNNER_TEMP: path.join(TEST_TEMP_DIR, 'runner-temp'), ACTIONS_RESULTS_URL: 'http://localhost:3000/', ACTIONS_CACHE_URL: 'http://localhost:3000/', From ff30837f5447e5cc76c3e926651b4151f32809bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=A4usler?= Date: Tue, 3 Feb 2026 23:48:00 +0100 Subject: [PATCH 3/3] test fixed --- tests/setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/setup.ts b/tests/setup.ts index 9f95dec..74e9547 100644 --- a/tests/setup.ts +++ b/tests/setup.ts @@ -26,7 +26,7 @@ const env = createEnv({ const TESTING_ENV_BASE = { API_BASE_URL: 'http://localhost:3000', - DEFAULT_ACTIONS_RESULTS_URL: 'results-receiver.actions.xxxxxx.ghe.com', + DEFAULT_ACTIONS_RESULTS_URL: 'https://results-receiver.actions.xxxxxx.ghe.com', RUNNER_TEMP: path.join(TEST_TEMP_DIR, 'runner-temp'), ACTIONS_RESULTS_URL: 'http://localhost:3000/', ACTIONS_CACHE_URL: 'http://localhost:3000/',