Hello WAGO Community,
I’m hoping you guys can help me with a problem I’m having deploying a Blazor Server app on my WAGO Compact Controller 100 (CC100). I am trying to run the app within a Docker container along with Nginx as a reverse proxy, but have run into some challenges.
Background:
I have developed a Blazor server app that I want to host on the CC100. To run the app in an isolated environment, I have installed Docker on the CC100. My goal is to use Nginx to forward requests to the Blazor app running inside the same container on port 5000 while Nginx listens on port 8080.
Problem:
Port assignment conflict: when starting the container, I noticed that both Nginx and the Blazor app were using the same port (8080). This resulted in the default Nginx page being displayed and I could not access the Blazor app.
Solution steps:
I adjusted the Blazor app configuration so that it listens on port 5000 while Nginx stays on port 8080. This should allow Nginx to accept requests on port 8080 and forward them to the Blazor app on port 5000.
I have configured the nginx.conf file so that Nginx acts as a reverse proxy, but I am still having trouble reaching the app through the web browser
Current configuration:
Blazor app: Now runs on port 5000.
Nginx: Listens on port 8080 and forwards requests to the Blazor app on port 5000.
Docker setup: Both services (Nginx and the Blazor app) run in the same Docker container.
Logs and error messages:
Nginx starts without errors, but the forwarding to the Blazor app does not seem to work correctly.
The Blazor app seems to be running properly on port 5000, but I can’t reach it via Nginx.
Questions:
Has anyone had similar experiences and can give me troubleshooting tips?
Are there any specific settings or peculiarities when using Docker and Nginx on the CC100 that I should be aware of?
Could it be due to resource limitations on the CC100, or are there any known issues with this type of setup?
I appreciate any help or suggestions!
Many thanks in advance!
Best regards,
Jan