-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
40 lines (28 loc) · 963 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import os
# Thread Request Timeout Time in seconds
TIMEOUT = 50
# Maximum Thread requests to the server
MAX_REQUESTS = 50
# Maximum URI length of the request
MAX_URI_LENGTH = 80
# Document Root of the server
ROOT = os.getcwd()
# Request URI which has moved permanently to a new URI
REDIRECTED_PAGE = ROOT + "/website/old.html"
# New URI for the redirection
NEW_URI = ROOT + "/website/new.html"
# Logfile location and name
LOGFILE = ROOT + "/access.log"
# Directory for moving expired compressed log files
LOG_DIRECTORY = ROOT + "/logFiles"
# Expiry time for logfile
LOGFILE_TIME = 86400
# Maximum payload length for request data (2 GB)
MAX_PAYLOAD = 4294967296
# username and password for approval of delete request method
USERNAME = 'VAMK'
PASSWORD = 'vamk1410'
# Cookie header details
COOKIE = 'Set-Cookie: id='
MAXAGE = '; max-age=60'
COOKIE_IDS = ['abcd', '1234', 'user', 'cook', 'mrun', 'vrii', 'wxyz']