Author SHA1 Message Date
Nova 3924ead7e8 Update README.md 2026-03-02 21:41:42 +01:00
Nova 1dd542ccb1 i finaly fixed it
e
2026-01-09 08:57:46 +01:00
Nova ff1f842e8e update 2 2026-01-09 08:47:23 +01:00
Nova 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
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -1,5 +1,7 @@
# PyWebServer # PyWebServer
# PyWebServer is pretty much abandoned, I am working on a continuation called Amethyst which will be PyWebServer 2.0 in vein. It is being worked on in the branch 2.0.
## Current state ## Current state
Currently I'm in the middle of bringing major improvements to PyWebServer, like a significantly better config 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, automatic HTTPS certificate generation using Let's Encrypt, HTTP `PUT`, `POST` and `DELETE` support,
+3 -1
View File
@@ -159,6 +159,8 @@ class FileHandler:
value = value.rstrip("/") value = value.rstrip("/")
return value return value
return value return value
if option == "block-ua":
return [], []
return None return None
def read_new_config(self, option, host=None): def read_new_config(self, option, host=None):
@@ -583,7 +585,7 @@ class WebServer:
def main(): def main():
file_handler = FileHandler() file_handler = FileHandler()
file_handler.check_first_run() # file_handler.check_first_run()
file_handler.base_dir = file_handler.read_config("directory") file_handler.base_dir = file_handler.read_config("directory")
http_port = file_handler.read_config("port") or 8080 http_port = file_handler.read_config("port") or 8080
https_port = file_handler.read_config("port-https") or 8443 https_port = file_handler.read_config("port-https") or 8443