fix(gnore): Onboarding fixes (#26824)

This commit is contained in:
Nerivec
2025-03-22 16:11:06 +01:00
committed by GitHub
parent 0714582eb9
commit f2a1c9a2be
3 changed files with 3 additions and 8 deletions
-5
View File
@@ -9,9 +9,4 @@ fi
echo "Using '$DATA' as data directory"
if [ ! -f "$DATA/configuration.yaml" ]; then
echo "Creating configuration file..."
cp /app/configuration.example.yaml "$DATA/configuration.yaml"
fi
exec "$@"
+1 -1
View File
@@ -371,7 +371,7 @@ function generateHtmlError(errors: string): string {
}
function getServerUrl(): URL {
return new URL(process.env.Z2M_ONBOARD_URL ?? 'http://localhost:8080');
return new URL(process.env.Z2M_ONBOARD_URL ?? 'http://0.0.0.0:8080');
}
async function startOnboardingServer(): Promise<boolean> {
+2 -2
View File
@@ -288,7 +288,7 @@ describe('Onboarding', () => {
expect(resEnd).toHaveBeenCalledTimes(2);
}
const serverUrl = new URL(process.env.Z2M_ONBOARD_URL ?? 'http://localhost:8080');
const serverUrl = new URL(process.env.Z2M_ONBOARD_URL ?? 'http://0.0.0.0:8080');
expect(mockHttpListen).toHaveBeenCalledWith(parseInt(serverUrl.port), serverUrl.hostname, expect.any(Function));
return [resEnd.mock.calls[0][0], resEnd.mock.calls[1][0]];
@@ -346,7 +346,7 @@ describe('Onboarding', () => {
expect(resEnd).toHaveBeenCalledTimes(2);
const serverUrl = new URL(process.env.Z2M_ONBOARD_URL ?? 'http://localhost:8080');
const serverUrl = new URL(process.env.Z2M_ONBOARD_URL ?? 'http://0.0.0.0:8080');
expect(mockHttpListen).toHaveBeenCalledWith(parseInt(serverUrl.port), serverUrl.hostname, expect.any(Function));
return resEnd.mock.calls[0][0];