An open API service indexing awesome lists of open source software.

https://github.com/chainski/https-file-server

This is a simple http file server to access your files via webbrowser.
https://github.com/chainski/https-file-server

file-server file-server-python https https-file-server https-server python-http-file-server python3 ssl

Last synced: 4 months ago
JSON representation

This is a simple http file server to access your files via webbrowser.

Awesome Lists containing this project

README

          




# HTTPS-FILE-SERVER
- This is a simple http file server to access your files via webbrowser.

## Preview
![server](https://github.com/user-attachments/assets/250b8b80-6525-48fe-a590-0aa2547ee86c)

## Support Python Version
- Python 3.10+

## Dependencies
- run install.bat

## Why choose
- Good UI
- Lightweight
- SSL support
- Easy to use

## Usage
```
python https-file-server
```
## Mandatory SSL
This script must be used with a certificate in order to work so, you need to generate one:

## Open Powershell as admin and enter the command below
```
$cert = New-SelfSignedCertificate -Subject "localhost" -TextExtension @("2.5.29.17={text}DNS=localhost&IPAddress=127.0.0.1") -CertStoreLocation cert:\LocalMachine\My
$pwd = ConvertTo-SecureString -String "httpfileserver" -Force -AsPlainText
Export-PfxCertificate -Cert $cert -FilePath $env:userprofile\downloads\cert.pfx -Password $pwd
```
## Convert the .pfx file to a .pem extension using
```
openssl pkcs12 -in cert.pfx -out cert.pem -nodes

```
After converting the certificate move it to the same directory as the script then run
```
python https-file-server.py
```