{"repo":"mjpclab/go-http-file-server","free":true,"listed":false,"github":"https://github.com/mjpclab/go-http-file-server","clone":"git clone https://github.com/mjpclab/go-http-file-server.git","description":"Simple command line based HTTP file server to share local file system","language":"Go","stars":481,"topics":["file-server","cli","static-server","http-server","go","file-sharing","upload-server"],"license":"MIT","category":"cli-tools","readme_excerpt":"Go HTTP File Server Simple command line based HTTP file server to share local file system. Usage Features - More friendly UI than Apache/Nginx directory index page - Adapt for mobile display - Single executable file - Can download the whole contents of current directory as archive file if enabled - Can upload files to current directory if enabled - Can specify a custom theme for page rendering - Support location alias(mount another directory to URL location) Tech Features - Monolithic architecture - Stateless - Zero third-party dependency Install Minimal required Go version is 1.18. Install to Go's bin directory: Or build locally: Examples Start server on port 8080, root directory is current working directory: Start server on port 8080, root directory is /usr/share/doc: Start server on default port, root directory is /var/tmp, and allow upload files into ./data: Share files from /etc, but also mount /usr/share/doc to URL path /doc Start server on port 8080, serve for HTTPS protocol Do not show hidden unix directories and files that starts with . . Tips: wrap wildcard by quotes to prevent expanding by shell. Show access log on console: Http Basic Auth: - requires authentication for URL /files - username: user1, password: pass1 - username: user2, password: pass2 Share /data, grant upload permission on /data/upload to user \"admin\" and \"root\", others are read only: Start 2 virtual hosts: - server 1 - listen on port 80 for http - listen on port 443 for https - cert file: /cert/ser","default_branch":null,"files":null,"tree":[],"storefront":"/r/mjpclab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mjpclab/go-http-file-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}