💾 Archived View for freeshell.de › tldr › serve.gmi captured on 2022-04-28 at 19:30:49. Gemini links have been rewritten to link to archived content
View Raw
More Information
-=-=-=-=-=-=-
serve
Static file serving and directory listing.
More information.
- Start an HTTP server listening on the default port to serve the current directory:
serve
- Start an HTTP server on a specific [p]ort to serve a specific directory:
serve -p {port} {path/to/directory}
- Start an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses:
serve --cors
- Start an HTTP server on the default port rewriting all not-found requests to the `index.html` file:
serve --single
- Start an HTTPS server on the default port using the specified certificate:
serve --ssl-cert {path/to/cert.pem} --ssl-key {path/to/key.pem}
- Start an HTTP server on the default port using a specific configuration file:
serve --config {path/to/serve.json}
serve --help
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY