4 Commits

Author SHA1 Message Date
1dd542ccb1 i finaly fixed it
e
2026-01-09 08:57:46 +01:00
ff1f842e8e update 2 2026-01-09 08:47:23 +01:00
26a47e96e0 couldn't be assed to fix it i did it now
after 5 fucking months i fix issue
2026-01-09 08:38:30 +01:00
a9e9ed6545 Update README.md 2025-08-20 14:11:53 +02:00
2 changed files with 13 additions and 2 deletions

View File

@@ -1,7 +1,16 @@
# PyWebServer
## Current state
Currently I'm in the middle of bringing major improvements to PyWebServer, like a significantly better config
automatic HTTPS certificate generation using Let's Encrypt, HTTP `PUT`, `POST` and `DELETE` support,
HTTP2 support and auto-indexing.
This all will be part of major release 2, version 2.0. These improvements will partially make their way into 1.x
versions, from 1.4 onwards, mostly as testing ground and compatibility with 2.0 reasons. Most will probably be dead code
until 2.0 properly comes out. Until then, parts of the code may be pretty cluttered. I'll probably enable you to test some feautres
like the new config, but code quality is currently not a main priority.
## GitHub
The upstream of this project is on my own [Gitea instance](https://git.novacow.ch/Nova/PyWebServer/).
The host of this project is on my own [Gitea instance](https://git.novacow.ch/Nova/PyWebServer/).
Because of that I'll mostly reply to issues and PRs there, you can submit issues and PRs on GitHub, but it might take longer before I read it.
## Installing

View File

@@ -159,6 +159,8 @@ class FileHandler:
value = value.rstrip("/")
return value
return value
if option == "block-ua":
return [], []
return None
def read_new_config(self, option, host=None):
@@ -583,7 +585,7 @@ class WebServer:
def main():
file_handler = FileHandler()
file_handler.check_first_run()
# file_handler.check_first_run()
file_handler.base_dir = file_handler.read_config("directory")
http_port = file_handler.read_config("port") or 8080
https_port = file_handler.read_config("port-https") or 8443