This pull request restructures the Docker setup for Listenarr, consolidating the backend and frontend builds into a single container and standardizing the application's port usage. It also updates the logout logic in the API to more reliably extract session tokens from request headers. The most important changes are grouped below:
Dockerfile and Containerization Updates:
- The main
Dockerfileis renamed fromDockerfile.apiand now builds both the backend (.NET API) and frontend (Vue.js) into a single container, exposing only port 5000 (the standard ASP.NET Core port). (DockerfileDockerfileL1-R5) - The separate frontend Dockerfiles (
Dockerfile.webandDockerfile.web.runtime) are removed, reflecting the shift to a unified container build process. (Dockerfile.web[1]Dockerfile.web.runtime[2] - The
docker-compose.ymlservice configuration is updated to clarify that port 5000 is the standard ASP.NET Core port. (docker-compose.ymldocker-compose.ymlL8-R8)
API Improvements:
- The
Logoutendpoint inAccountControllernow extracts the session token directly from theAuthorizationorX-Session-Tokenheaders, improving reliability and consistency in session invalidation. (listenarr.api/Controllers/AccountController.cs[1] [2] [3]
Application Configuration:
- The backend is exp...
Automated canary build