smallphp/small-static-http
small-static-http is a small http server written in php using openswoole to serve static files.
{
"root-path": "/var/www",
"index-files": ["index.html"],
"not-found": {
"page": "/not-found.html",
"status": 404
},
"skip-hidden-files": true,
"http": {
"port": 80,
"swoole": {
"worker_num": 8,
"backlog": 128
}
},
"logs": [
{
"kind": "kernel",
"type": "stdout",
"format": "text"
},
{
"kind": "access",
"type": "file",
"format": "json",
"path": "/var/log/small-http-server/access.log"
},
{
"kind": "error",
"type": "http",
"format": "json",
"host": "127.0.0.1",
"port": 9000,
"protocol": "https"
}
]
}
version: "3.7"
services:
static-server:
image: smallphp/small-static-http:latest
ports:
- 80:80
volumes
- ./config.json:/etc/small-static-http.json
- /home/user/my-site:/var/www
Sources are located on framagit : https://framagit.org/small/small-static-http
docker pull smallphp/small-static-http