mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Disable swagger by default #6900
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @goremykin on GitHub (Apr 9, 2025).
Description of the bug
I was very surprised to find Swagger on my public Jellyfin instance (docker container). And I don't see any option how to disable it on Jellyfin side, so had to close it on reverse proxy level.
If this is expected behavior, just close the issue. I guess this is not the expected behavior considering that 99% of users are unlikely to use it and it makes life easier for attackers.
If we talk about resources, then turning off Swagger will not reduce many resources, but on weak devices every resource matters.
Reproduction steps
What is the current bug behavior?
Swagger UI is opened
What is the expected correct behavior?
404 error
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.7
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response
@nielsvanvelzen commented on GitHub (Apr 9, 2025):
This is intended behavior, the API of Jellyfin is public. In normal situations you wouldn't open this document by yourself so it won't consume any resources.
@goremykin commented on GitHub (Apr 9, 2025):
@nielsvanvelzen, Thanks for your answer. Let's close the issue then.
In terms of resources it of course uses some to create and store the schema, but it is too minimal to be an argument.