Closed fjlopez closed 2 months ago
The solution involves modifying the Nginx configuration and the Docker Compose setup to correctly handle the exposed ports and ensure proper redirection.
Create default.conf.template
:
default.conf
with default.conf.template
./admin
and /viewer
with 301 redirects.EXPOSED_PORT
in the template to dynamically include the exposed port in the Location
headers.Update docker-compose.yml
:
front
service that dynamically creates the Nginx configuration template.EXPOSED_PORT
into the Nginx configuration using envsubst
before starting Nginx.
Describe the bug The links in README.md for the SITMUN viewer application and the SITMUN administrative application are broken.
To Reproduce Steps to reproduce the behavior:
Expected behavior The browser should be able to show the applications either at http://localhost:9000/viewer and at http://localhost:9000/viewer/ (same for the admin)