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

wai-app-static: Allow accessing .well-known #1008

Open
dpwiz opened this issue Sep 26, 2024 · 2 comments
Open

wai-app-static: Allow accessing .well-known #1008

dpwiz opened this issue Sep 26, 2024 · 2 comments

Comments

@dpwiz
Copy link
Contributor

dpwiz commented Sep 26, 2024

Currently the static app can't be used to serve Let'sEncrypt challenges as it refuses to serve hidden files.
While it is possible to provide custom ssLookupFile, making such a function is quite inconvenient as it implies building the File object.
A simple flag to allow the directory or a list of allowed prefixes would be much nicer.

@Vlix
Copy link
Contributor

Vlix commented Oct 29, 2024

Could you link to the code section that filters out hidden files?

@dpwiz
Copy link
Contributor Author

dpwiz commented Nov 1, 2024

@Vlix

entries' <- fmap (filter isVisible) $ getDirectoryContents fp

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

2 participants