Skip to content

Comments

🐛 bug: Nginx does not route correctly using the docker image#96

Open
Paul2803k wants to merge 5 commits intodevelopmentfrom
bugfix/95-nginx-does-not-route-correctly-using-the-docker-image
Open

🐛 bug: Nginx does not route correctly using the docker image#96
Paul2803k wants to merge 5 commits intodevelopmentfrom
bugfix/95-nginx-does-not-route-correctly-using-the-docker-image

Conversation

@Paul2803k
Copy link
Collaborator

@Paul2803k Paul2803k commented Feb 10, 2026

Description

In this PR we fix the reported issue. We also add the possibility for the user to point to SOARCA backend and to set the listening port of the GUI, for both the non docker and the docker builds.

Implementation

  • NGINX was not routing the application correctly because it tries to route the application by using its file system by default. In our case the routing is handled by the BrowserRouter directly in the browser. We then fixed the issue by configuring NGINX to always point to the application entry point for every route so that the application can handle it.
  • We also set up NGINX to work as a proxy server by forwarding all the api/foo requests from the app to the SOARCA backend to an IP address set by the user while stripping the api part. When the app is served by Vite we configured the Vite server to do the same.
  • When running the application in a container the user can now modify the docker-compose files to set the listening port of the application and the SOARCA backend.

@Paul2803k Paul2803k linked an issue Feb 10, 2026 that may be closed by this pull request
@Paul2803k Paul2803k changed the title 🐛 bug: nginx does not route correctly using the docker image 🐛 bug: Nginx does not route correctly using the docker image Feb 10, 2026
@Paul2803k Paul2803k force-pushed the bugfix/95-nginx-does-not-route-correctly-using-the-docker-image branch from e7b17d1 to 8cfc844 Compare February 12, 2026 15:08
@Paul2803k Paul2803k force-pushed the bugfix/95-nginx-does-not-route-correctly-using-the-docker-image branch from 8cfc844 to 304ab22 Compare February 12, 2026 15:21
@MaartendeKruijf MaartendeKruijf force-pushed the bugfix/95-nginx-does-not-route-correctly-using-the-docker-image branch from 304ab22 to ea4447e Compare February 19, 2026 15:25
@Paul2803k Paul2803k force-pushed the bugfix/95-nginx-does-not-route-correctly-using-the-docker-image branch from ea4447e to 304ab22 Compare February 20, 2026 08:56
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.

🐛 bug: Nginx does not route correctly using the docker image

2 participants