mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Special handling of json mimetype for json files. Moving types up to avoid overwriting mime.types. Adding custom types to nginx to server ebooks better. Displaying EBookCard correctly when ebook was not indexed correctly. Global search can search for all ebooks (mobi/epub). Testing when mimetype suffix is searched. Adding eBook to global search filter list. Opening mimetype search to match mimetypes that may not end with expected suffix. Adding log warning to explain refresh speed. Generating ebook covers after refresh. Testing that another nearby book removes the cover. Calibre covers can be discovered and associated with an ebook. Handling if ebooklib is not yet installed. Adding ebook table and modeler to allow searching the contents of epub files. Marking all PDFs as un-indexed, so they will be indexed. Replacing null characters in PDF text. Testing PDFIndexer against example PDF file. Installing PyPDF2 to extract text for PDFIndexer.
68 lines
1.2 KiB
Text
68 lines
1.2 KiB
Text
events {
|
|
|
|
}
|
|
|
|
|
|
http {
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
charset utf-8;
|
|
|
|
include mime.types;
|
|
types {
|
|
# Custom types for ebooks.
|
|
application/x-mobipocket-ebook mobi;
|
|
application/epub+zip epub;
|
|
}
|
|
|
|
server {
|
|
location /favicon.ico {
|
|
alias /etc/nginx/favicon.ico;
|
|
}
|
|
|
|
location /apple-touch-icon.png {
|
|
alias /etc/nginx/icon.png;
|
|
}
|
|
|
|
location / {
|
|
# React APP
|
|
proxy_pass http://app:3000;
|
|
rewrite $1 break;
|
|
}
|
|
|
|
location /sockjs-node {
|
|
proxy_pass http://app:3000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
}
|
|
|
|
location /api {
|
|
proxy_pass http://api:8081;
|
|
rewrite /^api(.*)$ $1 break;
|
|
}
|
|
|
|
location /docs {
|
|
proxy_pass http://api:8081;
|
|
rewrite /^docs(.*)$ $1 break;
|
|
}
|
|
|
|
location /media {
|
|
|
|
# The media files mounted in the docker volume
|
|
sendfile on;
|
|
sendfile_max_chunk 1m;
|
|
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
|
|
autoindex on;
|
|
autoindex_exact_size off;
|
|
alias /opt/media;
|
|
}
|
|
}
|
|
|
|
}
|