-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
35 lines (22 loc) · 798 Bytes
/
config.py
File metadata and controls
35 lines (22 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
#Timeout (in seconds) for Thread Request
TIMEOUT = 30
#Max Thread Requests Server can support
MAX_NO_OF_REQUESTS = 30
#Max URI Length of HTTP Request the Server can Support
MAX_URI_LENGTH = 100
#Max Size of Payload of data the Server can Support (in bytes)
MAX_PAYLOAD_LEN = 1073741824 #1GB
#List to store current client connections of server
clientList = []
#Document Root of Server = Current Working Directory
ROOT = os.getcwd()
#Log File location #access.log file of server
LOGFILE = ROOT + '/server_logfile.log'
#Logfile will be expired (deleted) after this time (in seconds)
LOGFILE_EXP_TIME = 5184000 #60 days = 5184000 seconds
#Log format
LOG_FORMAT = '%(asctime)s : %(message)s'
#Demo Username and Password for Testing Delete
USERNAME = 'test1'
PASSWORD = 'test123'