Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3924ead7e8 | ||
|
|
1dd542ccb1 | ||
|
|
ff1f842e8e | ||
|
|
26a47e96e0 |
@@ -1,5 +1,7 @@
|
||||
# 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
|
||||
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,
|
||||
|
||||
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user