9
edits
m (→..using Nginx: correct minor glitch in rewrites) |
(→..using Nginx: add comments for kiwix-serve / kiwix-manage usage) |
||
Line 107: | Line 107: | ||
limit_req_zone $binary_remote_addr zone=four:1m rate=4r/s; | limit_req_zone $binary_remote_addr zone=four:1m rate=4r/s; | ||
# Default server configuration | # Default server configuration, proxying requests to a kiwix-serve instance running on port 4201 | ||
# | |||
# - add zim files to a library.xml, see http://www.kiwix.org/wiki/Kiwix-manage | |||
# chown www-data *.zim library.xml | |||
# | |||
# - then start kiwix-serve (uses dropped privileges, like nginx itself): | |||
# sudo -u www-data -g adm bash -c 'kiwix-serve --port=4201 --library library.xml &>/dev/null &' | |||
# | |||
server { | server { | ||
# comment next three lines if connection or request rate limits are not needed | # comment next three lines if connection or request rate limits are not needed |
edits