https://github.com/caub/fserve
static file server
https://github.com/caub/fserve
Last synced: 3 months ago
JSON representation
static file server
- Host: GitHub
- URL: https://github.com/caub/fserve
- Owner: caub
- Created: 2016-10-06T06:55:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T18:45:57.000Z (almost 9 years ago)
- Last Synced: 2025-03-12T12:18:06.643Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fserve
basic static file server, like http-server
`npm i -g fserve`
usage:
`serve optionalPort`
`serve -s optionalPort` (for https)
`serve -s=~/.certs/ optionalPort` (define where to search cert.pem and key.pem)
### notes
generate certs with
```
openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365
openssl rsa -in keytmp.pem -out key.pem
```
we could use pem npm module and/or `chrome --allow-insecure-localhost --ignore-certificate-errors`