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.
- Host: GitHub
- URL: https://github.com/chainski/https-file-server
- Owner: Chainski
- License: gpl-3.0
- Created: 2022-03-10T05:34:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-18T05:23:43.000Z (about 1 year ago)
- Last Synced: 2025-04-03T00:24:27.270Z (6 months ago)
- Topics: file-server, file-server-python, https, https-file-server, https-server, python-http-file-server, python3, ssl
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTPS-FILE-SERVER
- This is a simple http file server to access your files via webbrowser.## Preview
## 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
```