-
Notifications
You must be signed in to change notification settings - Fork 78
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
file listing #7
Comments
Hi! That's a cool idea, I"m starting to work on that. |
File listing should be working without modifications according to the actual implementation 😄 |
I just tried this: ./goStatic --path /home/pierre/workspace/personal/go/src/github.com/PierreZ/goStatic
2017/11/14 00:36:17 Listening at 0.0.0.0:8043...
# in another terminal
curl localhost:8043
<pre>
<a href=".git/">.git/</a>
<a href=".gitignore">.gitignore</a>
<a href=".travis.yml">.travis.yml</a>
<a href="Dockerfile">Dockerfile</a>
<a href="LICENSE">LICENSE</a>
<a href="README.md">README.md</a>
<a href="auth.go">auth.go</a>
<a href="goStatic">goStatic</a>
<a href="main.go">main.go</a>
</pre> |
Now sorry to ask this. But is there a way to turn off directory listing? I'm planning to use this as a static file server for js,fonts,css,etc. And I dont want people to browse the assets. |
This is probably a bit late for you, shantanuthatte, but here's a little workaround for others that have landed here through Google. Create an |
I agree with you @utarwyn, would you like to open a PR? 🚀 |
Hi there, is there any way to have this web server display a list of files in a directory rather than render the HTML? I would love to mount a persistent volume (that contains a bunch of files) to /srv/http and then be able to open the webpage of goStatic to download files from within that persistent volume
The text was updated successfully, but these errors were encountered: