-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
24 lines (18 loc) · 942 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ServerName = "PyHTTP" # Server name, used in Server header as well as on default error pages.
Port = 7000 # Port to serve on, default is 7000
Bind = "0.0.0.0" # IP Address to bind to, default is 0.0.0.0. Use 127.0.0.1 to only allow local connections
WebRoot = "webroot" # Web server root directory, do not include the last / in the path
SSLEnable = False # HIGHLY UNSTABLE, DO NOT USE
CertPath = "ssl/cert.pem" # Path to SSL Cert, requires SSLEnable
KeyPath = "ssl/key.pem" # Path to SSL Key, requires SSLEnable
SSLPort = 7443 # Port to serve SSL on, default is 7443, requires SSLEnable
############################
# Extensions Configuration #
############################
# TODO: Extensions are a WIP and may not work, use with caution
# Extensions to run after loading the document.
ExtDoc = [
]
# Extensions that run after creating headers.
ExtHead = [
]