Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lus/mosquito
A simple and lightweight HTTP web server
https://github.com/lus/mosquito
Last synced: 9 days ago
JSON representation
A simple and lightweight HTTP web server
- Host: GitHub
- URL: https://github.com/lus/mosquito
- Owner: lus
- License: mit
- Archived: true
- Created: 2020-06-27T22:03:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-28T16:36:30.000Z (over 4 years ago)
- Last Synced: 2024-08-01T13:31:07.853Z (3 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mosquito
Mosquito is a simple and lightweight HTTP web server to serve and cache static files like assets.## Deployment
I recommend deploying mosquito using Docker. The image is named `ksebrt/mosquito` and you can find a docker-compose example in the `docker-compose.yml` file.## Configuration
Configuration is achieved using the following environment variables:
| Environment Variable | Description | Default value | Example |
|-------------------------|-----------------------------------------------------|---------------|-------------------------|
| `MOS_ADDRESS` | The address mosquito listens to | `:8080` | `127.0.0.1:2255` |
| `MOS_CACHE_DURATION` | The duration mosquito caches files for | `10m` | `20m10s` |
| `MOS_DIRECTORY_INDEXES` | Whether or not mosquito generates directory indexes | `false` | `true` |
| `MOS_INDEX_FILES` | A list of index file names, separated by `;;` | `` | `index.html;;index.htm` |