rust-tls-server is a web server capable of serving static content over https.
- HTTPS via Mozilla Intermediate TLS
- Self-signed certificate out of the box
- Strict Transport Security
- Content Security Policy is set to serve assets only from https sources. Inline javascript is forbidden
- Referer Policy is set
- Cross-Origin Resource Sharing (CORS). Allowing resources to be used on other domains can be crucial for providing APIs and services. Knowing how cumberstone and difficult is the process to setup the CORS, server ships with CORS enabled to all requests by default.
- HTTP Range Requests. Server supports requests for the part of the file, or several different parts of the file.
- HTTP Client Hints. Proactively asking client browser for suitable additional information about the system.
- X-Content-Type-Options set to nosniff, prevents from MIME type sniffing attacks.
- X-Frame-Options. Site is not allowed to be embedded into iframe on other domains.
- Symlinks. You can have symlinks in your folder and they will be resolved correctly.
- Caching done right. It means no caching and therefore no outdated uncontrollable resources.
- Resolving .html files without .html in path. It means if you try to open /some-html-file it will open file some-html-file.html and won't show 404 not found error. Same applies for folders. If you try to open /folder it will open file folder/index.html
- Extensive logging. It means server prints the request-response pairs as they are so you can see all the details like request method, path, version and headers.
- No third party dependencies.
Download binary from Google Drive.
Open INSTALL for details.
Open DEVELOPER for details.
Open CONFIGURE for details.
Open FAQ for details.
Use GitHub discussions, issues and pull requests.
There is Rust Web Server Discord where you can ask questions and share ideas.
Follow the Rust code of conduct.
If you appreciate my work and want to support it, feel free to do it via PayPal.