https://github.com/hans00/nginx-file-server
The static file server based on Nginx.
https://github.com/hans00/nginx-file-server
file-upload nginx static-site
Last synced: about 1 year ago
JSON representation
The static file server based on Nginx.
- Host: GitHub
- URL: https://github.com/hans00/nginx-file-server
- Owner: hans00
- Created: 2019-02-23T08:59:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-23T09:00:16.000Z (over 7 years ago)
- Last Synced: 2025-02-14T11:52:31.988Z (over 1 year ago)
- Topics: file-upload, nginx, static-site
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/hans00/nginx-file-server
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Nginx File Server
===
The static file server based on Nginx.
Introduction
---
## Start the service
```sh
docker run -d --restart-always -p 80:80 -v ${path_to_store}:/var/www hans00/nginx-file-server
```
## Services
- Nginx
- Public static file access
- WebDAV
- default is `/dav/` with account `admin:admin`
## Enviroments
### `HTPASSWD`
The account to access WebDAV service.
Default: `admin:$apr1$1LqDxPYe$bfT20Jzj5t.x85KCcm/ac.` \(admin:admin\)
### `BODY_SIZE`
It's apply to `client_max_body_size` this config.
Default: `16M`
### `DAV_PATH`
Path to access WebDAV service.
Default: `/dav`
### `CORS`
CORS header. [\[docs\]](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
Defailt: `none`