iac/ansible/vars/mcaptcha/vars.yml

71 lines
3.3 KiB
YAML
Raw Normal View History

2023-12-09 03:39:55 +05:30
database_type: "postgres" # REQUIRED. options: "mariadb", "postgres"
cache_type: "redis" # REQUIRED. options: "embedded", "redis"
2023-12-09 03:21:26 +05:30
2023-12-09 03:39:55 +05:30
# database user
2023-12-09 03:21:26 +05:30
database_owner: "mcaptcha"
database_name: "mcaptcha"
2023-12-09 03:39:55 +05:30
# AUTO-GENERATED. database password
2023-12-09 03:21:26 +05:30
database_password: "{{ lookup('ansible.builtin.password', 'credentials/database_password', chars=['ascii_leters', 'digits'], length=32) }}"
2023-12-09 03:39:55 +05:30
# Database connection pool
mcaptcha_database_pool: 4
# debug logging
2023-12-09 03:21:26 +05:30
mcaptcha_debug: false
2023-12-09 03:39:55 +05:30
# doens't do anything at the moment
2023-12-09 03:21:26 +05:30
mcaptcha_commercial: false
2023-12-09 03:39:55 +05:30
# create demo user and allow demo login
2023-12-09 03:21:26 +05:30
mcaptcha_allow_demo: false
2023-12-09 03:39:55 +05:30
# allow registration of new accounts. Required for the first user account.
# Please edit to set to "false" and re-rerun playbook if registration is
# undesirable.
mcaptcha_allow_registration: true
2023-12-09 03:21:26 +05:30
2023-12-09 03:39:55 +05:30
# AUTO-GENERATED. Randomly generated unique value for signing cookies.
2023-12-09 03:21:26 +05:30
mcaptcha_server_cookie_secret: "{{ lookup('ansible.builtin.password', 'credentials/mcaptcha_server_cookie_secret', chars=['ascii_leters', 'digits'], length=32) }}"
2023-12-09 03:39:55 +05:30
# REQUIRED. mcaptcha server port. Won't be exposed to internet, change if something else
# is listening on binding IP and port combination.
2023-12-09 03:21:26 +05:30
mcaptcha_server_port: 7000
2023-12-09 03:39:55 +05:30
# REQUIRED. bind to IP. If using reverse proxy (playbook installs and configures nginx), set to 127.0.0.1.
2023-12-09 03:21:26 +05:30
mcaptcha_server_bind: "127.0.0.1"
2023-12-09 03:39:55 +05:30
# REQUIRED. hostname of the mcaptcha installation. Incorrect hostname will cause login failures.
2023-12-09 03:21:26 +05:30
mcaptcha_server_hostname: "mcaptcha.local"
2023-12-09 03:39:55 +05:30
# AUTO-GENERATED. IGNORE if unfamiliar.
2023-12-09 03:21:26 +05:30
mcaptcha_captcha_salt: "{{ lookup('ansible.builtin.password', 'credentials/mcaptcha_captha_salt', chars=['ascii_leters', 'digits'], length=32) }}"
2023-12-09 03:39:55 +05:30
# IGNORE if unfamiliar. # garbage collection period to manage mCaptcha system
2023-12-09 03:21:26 +05:30
# mcaptcha_captcha_gc: 30
2023-12-09 03:39:55 +05:30
# IGNORE if unfamiliar. Number of threads used to validate Proof-of-Work (PoW)
2023-12-09 03:21:26 +05:30
# mcaptcha_captcha_runners: 4
2023-12-09 03:39:55 +05:30
# IGNORE if unfamiliar. Maximum pending jobs in queue for PoW validation
2023-12-09 03:21:26 +05:30
# mcaptcha_captcha_queue_length: 2000
2023-12-09 03:39:55 +05:30
# Store PoW compute time statistics
2023-12-09 03:21:26 +05:30
mcaptcha_captcha_enable_stats: true
2023-12-09 03:39:55 +05:30
# IGNORE if unfamiliar. Difficulty factor for average traffic. Used in "easy mode" CAPTCHA configuration generation.
2023-12-09 03:21:26 +05:30
#mcaptcha_captcha_default_difficulty_strategy_avg_traffic_difficulty: 50000 # almost instant solution
2023-12-09 03:39:55 +05:30
# IGNORE if unfamiliar. Difficulty factor for peak traffic levels. Used in "easy mode" CAPTCHA configuration generation.
2023-12-09 03:21:26 +05:30
#mcaptcha_captcha_default_difficulty_strategy_peak_sustainable_traffic_difficulty: 3000000 # roughly 1.5s
2023-12-09 03:39:55 +05:30
# IGNORE if unfamiliar. Difficulty factor for maximum traffic levels. Used in "easy mode" CAPTCHA configuration generation.
2023-12-09 03:21:26 +05:30
#mcaptcha_captcha_default_difficulty_strategy_broke_my_site_traffic_difficulty: 5000000 # greater than 3.5s
2023-12-09 03:39:55 +05:30
# IGNORE if unfamiliar. Default cooldown period in seconds for "easy mode".
2023-12-09 03:21:26 +05:30
mcaptcha_captcha_default_difficulty_strategy_avg_duration: 30
2023-12-09 03:39:55 +05:30
# Redis instance URL
2023-12-09 03:21:26 +05:30
mcaptcha_redis_url: "redis://127.0.0.1"
2023-12-09 03:39:55 +05:30
# Redis connection pool
2023-12-09 03:21:26 +05:30
mcaptcha_redis_pool: 4
2023-12-09 03:39:55 +05:30
# smtp configuration
2023-12-09 03:21:26 +05:30
mcaptcha_smtp_from: "admin@localhost"
mcaptcha_smtp_reply: "admin@localhost"
mcaptcha_smtp_url: "127.0.0.1"
mcaptcha_smtp_port: 10025
mcaptcha_smtp_username: "admin"
mcaptcha_smtp_password: "password"
#[survey]
#nodes = ["http://localhost:7001"]
#rate_limit = 10 # upload every hour
#instance_root_url = "http://localhost:7000"