mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
Moving FilesRefreshButton and DirectoryRefreshButton out of browser file. Moving file fetching tino FileBrowser. Removing sub-folders from Files display when any parent folder is clicked. Using closed captioning for vtt/srt file icon. Using my own react-semantic-toasts-2 to use toasts in Node 18. Fixing bug where more than the last page was displayed. Upgrading yt-dlp. Fixing sub-folder file selection. Adding rowKey to SortableTable to give React a key for each row. Renaming key to path. Removing duplicate urls. Unifying file modals. Displaying modals for image and text files. Handling refresh loading in FileBrowser. Creating refreshing_directory flag. Removing accidental commit. Sorting by url_count. Using SortableTable on Domains page. Using SortableTable for Channels page. Created new FileBrowser which allows browsing of files in the media directory. Using Node 18 in pi-gen. Creating new FileBrowser to replace outdated react-keyed-file-browser. Returning mimetype with file list. Do not display 'Do not download' on Channel download in Dashboard. Allowing null channel download frequency so user can stop downloading a channel. Bumping version for Node 18. Using my own semantic-ui-offline to avoid pulling Google fonts. Upgrading app docker container to use Node 18. This requires the removal of several npm packages. File browser will require re-write. It now pulls fonts from Google, this will need to be fixed. Testing DownloadsToggle click. Testing trinary states of DownloadsToggle. Installing @testing-library/user-event for testing App.
86 lines
1.6 KiB
Text
86 lines
1.6 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 /ws {
|
|
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;
|
|
}
|
|
|
|
location /download {
|
|
# Assume any request here is to download a file from the media directory.
|
|
if ( $request_filename ~ '^.*/(.+)$' ) {
|
|
# Always include the filename for downloads.
|
|
add_header Content-Disposition 'attachment; filename="$1"';
|
|
}
|
|
|
|
sendfile on;
|
|
sendfile_max_chunk 1m;
|
|
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
|
|
autoindex on;
|
|
autoindex_exact_size off;
|
|
alias /opt/media;
|
|
}
|
|
}
|
|
|
|
}
|