diff options
| author | crobibero <cody@robibe.ro> | 2020-12-06 19:40:43 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-12-06 19:40:43 -0700 |
| commit | d65e8d70442ecc2c03372abf5f81c65c6ab189a6 (patch) | |
| tree | d38f21f7c7f63146a0456cde88c23e36a8f70e4f /Jellyfin.Server/Startup.cs | |
| parent | a7b461adb472eb4591922e921e683b26ded87251 (diff) | |
Redirect robots.txt if hosting web content
Diffstat (limited to 'Jellyfin.Server/Startup.cs')
| -rw-r--r-- | Jellyfin.Server/Startup.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Jellyfin.Server/Startup.cs b/Jellyfin.Server/Startup.cs index aa3ef53500..306a52ce8f 100644 --- a/Jellyfin.Server/Startup.cs +++ b/Jellyfin.Server/Startup.cs @@ -142,6 +142,8 @@ namespace Jellyfin.Server RequestPath = "/web", ContentTypeProvider = extensionProvider }); + + mainApp.UseRobotsRedirection(); } mainApp.UseAuthentication(); |
