32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
# Using NSCL 1.3
|
|
# Port defenition. What ports to use.
|
|
# port is the HTTP port, port-https is the HTTPS port
|
|
port:8080
|
|
port-https:8443
|
|
# Here you choose what directory PyWebServer looks in for files.
|
|
directory:<Enter directory here>
|
|
# Host defenition, what hosts you can connect via.
|
|
# You can use FQDNs, IP-addresses and localhost,
|
|
# Support for multiple hosts is coming.
|
|
host:localhost
|
|
# Ignores the host parameter (except for localhost) and allows everything.
|
|
# DANGER! For obvious reasons this isn't recommended.
|
|
allow-all:0
|
|
# Enables HTTP support. (Only enables/disables the HTTP port.)
|
|
http:1
|
|
# Enables HTTPS support. (Only enables/disables the HTTPS port.)
|
|
https:1
|
|
# Allows the use of localhost to connect.
|
|
# The default is on, this is seperate of the host defenition.
|
|
allow-localhost:1
|
|
# If you're using the webserver in a library form,
|
|
# you can disable the AutoCertGen and never trigger it.
|
|
disable-autocertgen:0
|
|
# If you wish to block IP-addresses, this function is coming though.
|
|
# block-ip:0.0.0.0,1.1.1.1,2.2.2.2
|
|
# If you wish to block User-Agents, this function is coming though.
|
|
# block-ua:(NULL)
|
|
# This function is deprecated, allows a connection with no Host header.
|
|
# You should NEVER have to enable this! It can pose a risk to security!
|
|
# allow-nohost:0
|