2021-03-09 15:58:54 +05:30
|
|
|
debug = true
|
2021-06-01 17:33:47 +05:30
|
|
|
source_code = "https://github.com/mCaptcha/mCaptcha"
|
2021-08-04 19:24:35 +05:30
|
|
|
commercial = false
|
2021-08-09 12:23:06 +05:30
|
|
|
allow_demo = true
|
2021-08-09 10:37:19 +05:30
|
|
|
allow_registration = true
|
2021-03-09 15:58:54 +05:30
|
|
|
|
|
|
|
[server]
|
2021-03-24 14:31:11 +05:30
|
|
|
# Please set a unique value, your mCaptcha instance's security depends on this being
|
|
|
|
# unique
|
2021-03-09 15:58:54 +05:30
|
|
|
cookie_secret = "Zae0OOxf^bOJ#zN^&k7VozgW&QAx%n02TQFXpRMG4cCU0xMzgu3dna@tQ9dvc&TlE6p*n#kXUdLZJCQsuODIV%r$@o4%770ePQB7m#dpV!optk01NpY0@615w5e2Br4d"
|
|
|
|
# The port at which you want authentication to listen to
|
|
|
|
# takes a number, choose from 1000-10000 if you dont know what you are doing
|
|
|
|
port = 7000
|
|
|
|
#IP address. Enter 0.0.0.0 to listen on all availale addresses
|
|
|
|
ip= "0.0.0.0"
|
|
|
|
# enter your hostname, eg: example.com
|
|
|
|
domain = "localhost"
|
2021-08-05 21:05:27 +05:30
|
|
|
# Set true if you have setup TLS with a reverse proxy like Nginx.
|
|
|
|
# Does HTTPS redirect and sends additional headers that can only be used if
|
|
|
|
# HTTPS available to improve security
|
|
|
|
proxy_has_tls = false
|
2021-04-11 23:23:14 +05:30
|
|
|
#url_prefix = ""
|
2021-03-10 20:43:25 +05:30
|
|
|
|
2021-12-03 14:21:18 +05:30
|
|
|
[captcha]
|
2021-03-24 14:31:11 +05:30
|
|
|
# Please set a unique value, your mCaptcha instance's security depends on this being
|
|
|
|
# unique
|
2021-03-10 20:43:25 +05:30
|
|
|
salt = "asdl;kjfhjawehfpa;osdkjasdvjaksndfpoanjdfainsdfaijdsfajlkjdsaf;ajsdfweroire"
|
2021-03-24 14:31:11 +05:30
|
|
|
# garbage collection period to manage mCaptcha system
|
|
|
|
# leave untouched if you don't know what you are doing
|
|
|
|
gc = 30
|
2021-06-11 19:31:03 +05:30
|
|
|
|
2021-12-03 14:21:18 +05:30
|
|
|
[captcha.default_difficulty_strategy]
|
|
|
|
avg_traffic_difficulty = 50000 # almost instant solution
|
|
|
|
peak_sustainable_traffic_difficulty = 3000000 # roughly 1.5s
|
|
|
|
broke_my_site_traffic_difficulty = 5000000 # greater than 3.5s
|
|
|
|
duration = 30 # cooldown period in seconds
|
|
|
|
|
2021-06-11 19:31:03 +05:30
|
|
|
[database]
|
|
|
|
# This section deals with the database location and how to access it
|
|
|
|
# Please note that at the moment, we have support for only postgresqa.
|
|
|
|
# Example, if you are Batman, your config would be:
|
|
|
|
# hostname = "batcave.org"
|
|
|
|
# port = "5432"
|
|
|
|
# username = "batman"
|
|
|
|
# password = "somereallycomplicatedBatmanpassword"
|
|
|
|
hostname = "localhost"
|
|
|
|
port = "5432"
|
|
|
|
username = "postgres"
|
|
|
|
password = "password"
|
|
|
|
name = "postgres"
|
|
|
|
pool = 4
|
|
|
|
|
|
|
|
[redis]
|
|
|
|
# This section deals with the database location and how to access it
|
|
|
|
# Please note that at the moment, we have support for only postgresqa.
|
|
|
|
# Example, if you are Batman, your config would be:
|
|
|
|
# hostname = "batcave.org"
|
|
|
|
# port = "5432"
|
|
|
|
# username = "batman"
|
|
|
|
# password = "somereallycomplicatedBatmanpassword"
|
2021-06-11 20:02:08 +05:30
|
|
|
url = "redis://127.0.0.1"
|
2021-06-11 19:31:03 +05:30
|
|
|
pool = 4
|
2021-06-29 21:08:40 +05:30
|
|
|
|
2021-06-30 20:13:12 +05:30
|
|
|
[smtp]
|
|
|
|
from = "admin@localhost"
|
2021-07-09 12:04:48 +05:30
|
|
|
reply = "admin@localhost"
|
2021-06-30 20:57:26 +05:30
|
|
|
url = "127.0.0.1"
|
|
|
|
port = 10025
|
2021-06-30 20:13:12 +05:30
|
|
|
username = "admin"
|
|
|
|
password = "password"
|