mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 01:41:00 +00:00
Update server.py
This commit is contained in:
parent
699e455bef
commit
b0e5280be5
22
server.py
22
server.py
|
@ -44,17 +44,17 @@ def extract_credentials(url):
|
||||||
return None, None, url
|
return None, None, url
|
||||||
|
|
||||||
try:
|
try:
|
||||||
listening_port = config('PORT', cast=int)
|
listening_port = config('PORT', default=5555, cast=int)
|
||||||
_username, _password, server_url = extract_credentials(config('SERVER_URL'))
|
_username, _password, server_url = extract_credentials(config('SERVER_URL', default='localhost'))
|
||||||
server_connection_type = config('SERVER_CONNECTION_TYPE')
|
server_connection_type = config('SERVER_CONNECTION_TYPE', default='stateless')
|
||||||
cakey = config('CA_KEY')
|
cakey = config('CA_KEY', default='')
|
||||||
cacert = config('CA_CERT')
|
cacert = config('CA_CERT', default='')
|
||||||
certkey = config('CERT_KEY')
|
certkey = config('CERT_KEY', default='')
|
||||||
certdir = config('CERT_DIR')
|
certdir = config('CERT_DIR', default='')
|
||||||
openssl_binpath = config('OPENSSL_BINPATH')
|
openssl_binpath = config('OPENSSL_BINPATH', default='openssl')
|
||||||
client_encoding = config('CLIENT_ENCODING')
|
client_encoding = config('CLIENT_ENCODING', default='utf-8')
|
||||||
local_domain = config('LOCAL_DOMAIN')
|
local_domain = config('LOCAL_DOMAIN', default='')
|
||||||
proxy_pass = config('PROXY_PASS')
|
proxy_pass = config('PROXY_PASS', default='')
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("\n[*] User has requested an interrupt")
|
print("\n[*] User has requested an interrupt")
|
||||||
print("[*] Application Exiting.....")
|
print("[*] Application Exiting.....")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user