https://github.com/eminmuhammadi/static-file-server
The fastest way to serve static files. (Powered by Minio)
https://github.com/eminmuhammadi/static-file-server
file-server fileserver golang minio s3 static-files staticfiles
Last synced: 7 months ago
JSON representation
The fastest way to serve static files. (Powered by Minio)
- Host: GitHub
- URL: https://github.com/eminmuhammadi/static-file-server
- Owner: eminmuhammadi
- Created: 2022-04-29T01:36:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T20:05:58.000Z (over 4 years ago)
- Last Synced: 2024-06-20T16:51:26.459Z (about 2 years ago)
- Topics: file-server, fileserver, golang, minio, s3, static-files, staticfiles
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Static File Server
The fastest way to serve static files.
## Usage
```bash
go run main.go --port --path
```
## Production Environment
### Requirements
- docker
- docker-compose
### Exposed ports
- 80: static files http directory (production)
- 9000: Minio API endpoints
- 9001: Minio Console
### Start service
```bash
bash docker-up.sh
```
### Configuration
By default you need to create static-files bucket. To do so, open minio console then create new bucket named as `static-files`.
### Clients
Static File Server uses Minio as a backend (on docker environmet). So if you want to upload files to the server, you can use the following clients:
- https://docs.min.io/docs/java-client-quickstart-guide.html
- https://docs.min.io/docs/golang-client-quickstart-guide.html
- https://docs.min.io/docs/python-client-quickstart-guide.html
- https://docs.min.io/docs/javascript-client-quickstart-guide.html
- https://docs.min.io/docs/dotnet-client-quickstart-guide.html
- https://docs.min.io/docs/haskell-client-quickstart-guide.html