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

kiwix-serve - replace all options with directory listing like a normal web server and phase away kiwix-manage #735

Open
evrial opened this issue Feb 23, 2025 · 8 comments

Comments

@evrial
Copy link

evrial commented Feb 23, 2025

Currently we have a weird situation that kiwix-serve doesn't accept a location, but only library.xml or individual zim files. I propose to deprecate kiwix-manage, library approach and serve a location and display only zim files and subdirectories structure like all normal servers when browsing of file tree allowed.

@kelson42
Copy link
Contributor

@evrial To me globbing is good enough to loads tons of ZIM easily. What is your exact use case?

@evrial
Copy link
Author

evrial commented Feb 24, 2025

@evrial To me globbing is good enough to loads tons of ZIM easily. What is your exact use case?

I want a location tree structure, globbing hundreds of devdocs*.zim isn't ideal approach.

@kelson42
Copy link
Contributor

@evrial To me globbing is good enough to loads tons of ZIM easily. What is your exact use case?

I want a location tree structure, globbing hundreds of devdocs*.zim isn't ideal approach.

Just to be sure: what is the problem doing so?

@evrial
Copy link
Author

evrial commented Feb 24, 2025

The problem is I need to restart the server each time a file is removed or updated to newer version. I wish to use folders to organize the library.

@kelson42
Copy link
Contributor

kelson42 commented Feb 24, 2025

@evrial We call this function "folder monitoring". It has been implemented once in Kiwix For Windows and Linux. It might be indeed an idea to implement it for Kiwix Server as well... but this is for sure not a replacement to kiwix-manage.

@evrial
Copy link
Author

evrial commented Feb 24, 2025

The server simply need to scan the location tree every request/refresh of the page and show it's content to user, that's how servers operate for 50 years.

@kelson42
Copy link
Contributor

The server simply need to scan the location tree every request/refresh of the page and show it's content to user, that's how servers operate for 50 years.

We won't to that for sure as it would be extremly inefficient. But I keep the idea and will rephrase the whole issue as wee need to articulate the feature with other (library) "monitoring" option.

@evrial
Copy link
Author

evrial commented Feb 27, 2025

it would be extremly inefficient

No, it would be the same as listing a directory and display only *.zim files and folders. You did the similar work with apache plugin, it is exactly the same as mod_php, but for ZIM files. There is no place here for monitoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants