Continue improving serving and display of RSS/OPDS

This commit is contained in:
Alex Cabal 2022-06-20 11:31:58 -05:00
parent 06787c5f57
commit 37830e173f
5 changed files with 29 additions and 13 deletions

View file

@ -96,16 +96,23 @@ Define webroot /standardebooks.org/web
Header set Content-Disposition "attachment; filename=%{FILENAME}e"
</Location>
<Location ~ ^/opds.+?$>
DirectoryIndex index.xml
</location>
# We explicitly set the content-type for items in the /vocab/ directory, because Apache doesn't set it for us,
# and we need a content-type header when using the "nosniff" header. See https://bugzilla.mozilla.org/show_bug.cgi?id=1547076
<Location ~ ^/vocab/.+$>
Header set Content-Type "text/plain"
</location>
# text/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
<Location ~ ^/opds.+?$>
DirectoryIndex index.xml
Header set Content-Type "text/xml"
</location>
# text/xml allows the page to be displayed in a browser. application/rss+xml will cause it to be downloaded.
<Location ~ ^/rss/.*$>
Header set Content-Type "text/xml"
</Location>
# Enable HTTP CORS so that browser-based readers like Readium can access opds and ebooks
# Allow fonts for newsletter emails
# See https://github.com/standardebooks/tools/issues/2

View file

@ -95,16 +95,23 @@ Define webroot /standardebooks.org/web
Header set Content-Disposition "attachment; filename=%{FILENAME}e"
</Location>
<Location ~ ^/opds.+?$>
DirectoryIndex index.xml
</location>
# We explicitly set the content-type for items in the /vocab/ directory, because Apache doesn't set it for us,
# and we need a content-type header when using the "nosniff" header. See https://bugzilla.mozilla.org/show_bug.cgi?id=1547076
<Location ~ ^/vocab/.+$>
Header set Content-Type "text/plain"
</location>
# text/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
<Location ~ ^/opds.+?$>
DirectoryIndex index.xml
Header set Content-Type "text/xml"
</location>
# text/xml allows the page to be displayed in a browser. application/rss+xml will cause it to be downloaded.
<Location ~ ^/rss/.*$>
Header set Content-Type "text/xml"
</Location>
# Enable HTTP CORS so that browser-based readers like Readium can access opds and ebooks
# Allow fonts for newsletter emails
# See https://github.com/standardebooks/tools/issues/2