Skip to content

Conversation

@HamzaDevz
Copy link
Contributor

@HamzaDevz HamzaDevz commented Jun 24, 2025

Hi there,

I've found a small bug in the Dockerfile_WebUI that prevents configuring the backend API URL at build time. It seems to be caused by a simple variable name mismatch.

The Vue.js application code expects an environment variable named VUE_APP_RESTAPI_URL:

// From the Vue.js source
server: process.env.VUE_APP_RESTAPI_URL || 'http://127.0.0.1:8443/api'

However, the Dockerfile_WebUI declares and sets a build argument with a different name, VUE_APP_API_URL (it's missing "REST"):

# From Dockerfile_WebUI
ARG VUE_APP_API_URL
ENV VUE_APP_API_URL=${VUE_APP_API_URL:-http://localhost:8080}

Because the names don't match, any value passed as a build-arg is ignored by the application, and it always uses its internal fallback URL (http://127.0.0.1:8443/api).

A simple fix would be to align the variable name in Dockerfile_WebUI to match what the application code expects.

Hope this helps! Thanks for the great work on the project.

Copy link
Contributor

@uhurusurfa uhurusurfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix - much appreciated. 💯

@uhurusurfa uhurusurfa merged commit 6461aed into OpenAS2:master Jun 27, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants