-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.sample.py
More file actions
53 lines (42 loc) · 1.37 KB
/
configuration.sample.py
File metadata and controls
53 lines (42 loc) · 1.37 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
# start_tls or ssl
email_delivery = ""
# email address that sends the emails
email_sender = ""
# password for sending email
email_password = ""
# Target email
email_to = ""
smtp_server = ""
smtp_port = 587
server_port = 80
# IP Limiter time i.e. the time a single ip is stopped from resubmitting any data to the server
blocked_for_minutes = 5
# Mode selects the modus the application starts in
# Possible Values would be 'default' or 'ip'
# where ip limit the mount of requests a single ip can make within a timeframe
mode = 'default'
# The ip source defines where the server takes the ip from
# default = address_string from python
# any other value defines the header where the ip could be found
ip_source = 'default'
# If this field is filled then no email is sent
# If this field is not sent to the server no email is sent
# To disable set to none
spam_filter_field = 'filter'
# This is the value that the spam filter allows through
spam_field_value = 'i am not a bot'
# Allowed cors header domains
allowed_domains = ['.*']
# Fields that define content i.e. allowed fields in the form
fields = {
'message': 'Message',
}
message_text = """
Hello Space,
a new contact message from {name} has been received:
-------------------------------------------------------
{message}
-------------------------------------------------------
Yours Truly,
Contact Fomular on the Website
"""