mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-21 01:05:30 +00:00
Bug fix: Admin URL Conflict with XC Streams: Updated nginx configuration to only redirect exact /admin and /admin/ paths to login in production, preventing interference with stream URLs that use "admin" as a username (e.g., /admin/password/stream_id now properly routes to stream handling instead of being redirected).
This commit is contained in:
parent
43f08c418d
commit
bd1e0e8f07
3 changed files with 8 additions and 4 deletions
|
|
@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Better auto-generation of request/response schemas
|
||||
- Improved documentation accuracy with serializer introspection
|
||||
|
||||
### Fixed
|
||||
|
||||
- Admin URL Conflict with XC Streams: Updated nginx configuration to only redirect exact `/admin` and `/admin/` paths to login in production, preventing interference with stream URLs that use "admin" as a username (e.g., `/admin/password/stream_id` now properly routes to stream handling instead of being redirected).
|
||||
|
||||
## [0.18.1] - 2026-01-27
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@ urlpatterns = [
|
|||
path("swagger", RedirectView.as_view(url="/api/swagger/", permanent=True)),
|
||||
path("redoc/", RedirectView.as_view(url="/api/redoc/", permanent=True)),
|
||||
path("redoc", RedirectView.as_view(url="/api/redoc/", permanent=True)),
|
||||
# Admin
|
||||
path("admin", RedirectView.as_view(url="/admin/", permanent=True)),
|
||||
path("admin/", admin.site.urls),
|
||||
# Outputs
|
||||
path("output", RedirectView.as_view(url="/output/", permanent=True)),
|
||||
path("output/", include(("apps.output.urls", "output"), namespace="output")),
|
||||
|
|
@ -55,6 +52,9 @@ urlpatterns = [
|
|||
xc_series_stream,
|
||||
name="xc_series_stream",
|
||||
),
|
||||
# Admin
|
||||
path("admin", RedirectView.as_view(url="/admin/", permanent=True)),
|
||||
path("admin/", admin.site.urls),
|
||||
|
||||
# VOD proxy is now handled by the main proxy URLs above
|
||||
# Catch-all routes should always be last
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ server {
|
|||
}
|
||||
|
||||
# admin disabled when not in dev mode
|
||||
location /admin {
|
||||
location ~ ^/admin/?$ {
|
||||
return 301 /login;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue