2021-03-09 10:28:54 +00:00
|
|
|
debug = true
|
2021-06-01 12:03:47 +00:00
|
|
|
source_code = "https://github.com/mCaptcha/mCaptcha"
|
2021-08-04 13:54:35 +00:00
|
|
|
commercial = false
|
2021-08-09 06:53:06 +00:00
|
|
|
allow_demo = true
|
2021-08-09 05:07:19 +00:00
|
|
|
allow_registration = true
|
2021-03-09 10:28:54 +00:00
|
|
|
|
|
|
|
[server]
|
2021-03-24 09:01:11 +00:00
|
|
|
# Please set a unique value, your mCaptcha instance's security depends on this being
|
|
|
|
# unique
|
2021-03-09 10:28:54 +00:00
|
|
|
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 15:35:27 +00:00
|
|
|
# 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 17:53:14 +00:00
|
|
|
#url_prefix = ""
|
2021-03-10 15:13:25 +00:00
|
|
|
|
2021-12-03 08:51:18 +00:00
|
|
|
[captcha]
|
2021-03-24 09:01:11 +00:00
|
|
|
# Please set a unique value, your mCaptcha instance's security depends on this being
|
|
|
|
# unique
|
2021-03-10 15:13:25 +00:00
|
|
|
salt = "asdl;kjfhjawehfpa;osdkjasdvjaksndfpoanjdfainsdfaijdsfajlkjdsaf;ajsdfweroire"
|
2021-03-24 09:01:11 +00:00
|
|
|
# garbage collection period to manage mCaptcha system
|
|
|
|
# leave untouched if you don't know what you are doing
|
|
|
|
gc = 30
|
2022-05-27 09:55:33 +00:00
|
|
|
enable_stats = true
|
2021-06-11 14:01:03 +00:00
|
|
|
|
2021-12-03 08:51:18 +00:00
|
|
|
[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 14:01:03 +00:00
|
|
|
[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
|
2022-07-20 12:12:02 +00:00
|
|
|
database_type="postgres" # "postgres", "maria"
|
2021-06-11 14:01:03 +00:00
|
|
|
|
|
|
|
[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 14:32:08 +00:00
|
|
|
url = "redis://127.0.0.1"
|
2021-06-11 14:01:03 +00:00
|
|
|
pool = 4
|
2021-06-29 15:38:40 +00:00
|
|
|
|
2021-06-30 14:43:12 +00:00
|
|
|
[smtp]
|
|
|
|
from = "admin@localhost"
|
2021-07-09 06:34:48 +00:00
|
|
|
reply = "admin@localhost"
|
2021-06-30 15:27:26 +00:00
|
|
|
url = "127.0.0.1"
|
|
|
|
port = 10025
|
2021-06-30 14:43:12 +00:00
|
|
|
username = "admin"
|
|
|
|
password = "password"
|