Compare commits
4 Commits
amethyst-b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1dd542ccb1 | |||
| ff1f842e8e | |||
| 26a47e96e0 | |||
| a9e9ed6545 |
11
README.md
11
README.md
@@ -1,7 +1,16 @@
|
|||||||
# PyWebServer
|
# 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
|
## 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.
|
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
|
## Installing
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user