Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Kobo Sync #942

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/nginx/calibreweb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ location /calibreweb {
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Scheme \$scheme;
proxy_set_header X-Script-Name /calibreweb; # IMPORTANT: path has NO trailing slash

# Add Kobo Support. See https://github.com/janeczku/calibre-web/issues/1891#issuecomment-801886803
proxy_buffer_size 1024k;
proxy_buffers 4 512k;
proxy_busy_buffers_size 1024k;
}
EOF

Expand Down
8 changes: 8 additions & 0 deletions scripts/update/calibreweb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@ if [[ -f /install/.calibreweb.lock ]]; then
fi
echo_progress_done
fi
if [[ -f /etc/nginx/apps/calibreweb.conf ]]; then
if ! grep -q -- "proxy_buffer_size" /etc/nginx/apps/calibreweb.conf; then
echo_progress_start "Updating Calibre Web nginx config"
bash /usr/local/bin/swizzin/nginx/calibreweb.sh
systemctl reload nginx
echo_progress_done
fi
fi
fi