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

Claim for support of ‘Static site using database as file system’ is false advertising #359

Closed
dpk opened this issue Dec 12, 2023 · 5 comments

Comments

@dpk
Copy link

dpk commented Dec 12, 2023

https://caddyserver.com/#file-server claims (emphasis mine):

Serve your static site from anything: the local file system, remote cloud storage, a database, or even embedded in the server binary!

With the example

# Static site using database as file system
file_server /database/* {
	fs sqlite data.sql 
}

Curious, I tried to find more information on how to do this — what schema the SQLite database should have, etc.

There is no Google result other than the caddyserver.com home page for [caddy "fs sqlite"]. There appears to be no fs.sqlite module available from ZeroSSL or any affiliated company or third party. I could find no other relevant results with Google, DuckDuckGo, nor with GitHub search showing how this feature is concretely supported by Caddy. Similar considerations appear to apply to the fs embedded example following it, although I haven‘t looked extensively.

As such, this claim appears to be false advertising. At most, it appears to me that Caddy could claim to support a SQLite fs module in theory, if someone wrote the code for it. The current website states that this is possible as a feature of Caddy itself, which is not true.

@mholt
Copy link
Member

mholt commented Dec 12, 2023

Is this something you are needing?

@dpk
Copy link
Author

dpk commented Dec 12, 2023

I’m currently working on a static site generator which supports multiple ‘back ends’ for providing URLs without file extensions. This looked like a useful way to support this.

@mholt
Copy link
Member

mholt commented Dec 12, 2023

@mholt mholt closed this as completed Dec 12, 2023
@mohammed90
Copy link
Member

@dpk, you may also be interested in caddyserver/xcaddy#160, which addresses the embedded part. It builds atop https://github.com/mholt/caddy-embed.

@dpk
Copy link
Author

dpk commented Dec 12, 2023

Wow, thanks!!

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

No branches or pull requests

3 participants