mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
add minfraud
This commit is contained in:
parent
0d8684704f
commit
84a23e35ba
5 changed files with 25 additions and 2 deletions
1
Gemfile
1
Gemfile
|
@ -62,6 +62,7 @@ gem 'adequate_crypto_address'
|
|||
gem 'twilio-ruby'
|
||||
gem 'phonelib'
|
||||
gem 'dnsbl-client'
|
||||
gem 'minfraud'
|
||||
|
||||
group :development, :test do
|
||||
gem 'pry'
|
||||
|
|
10
Gemfile.lock
10
Gemfile.lock
|
@ -164,10 +164,19 @@ GEM
|
|||
mini_mime (>= 0.1.1)
|
||||
matrix (0.4.2)
|
||||
maxmind-db (1.1.1)
|
||||
maxmind-geoip2 (1.1.0)
|
||||
connection_pool (~> 2.2)
|
||||
http (>= 4.3, < 6.0)
|
||||
maxmind-db (~> 1.1)
|
||||
method_source (1.0.0)
|
||||
mime-types (3.4.1)
|
||||
mime-types-data (~> 3.2015)
|
||||
mime-types-data (3.2022.0105)
|
||||
minfraud (2.2.0)
|
||||
connection_pool (~> 2.2)
|
||||
http (>= 4.3, < 6.0)
|
||||
maxmind-geoip2 (~> 1.1)
|
||||
simpleidn (~> 0.1, >= 0.1.1)
|
||||
mini_mime (1.1.2)
|
||||
minitest (5.16.3)
|
||||
minitest-reporters (1.5.0)
|
||||
|
@ -360,6 +369,7 @@ DEPENDENCIES
|
|||
magic
|
||||
mail
|
||||
maxmind-db
|
||||
minfraud
|
||||
minitest
|
||||
minitest-reporters
|
||||
mocha
|
||||
|
|
|
@ -24,3 +24,5 @@ hcaptcha_secret_key: "0x0000000000000000000000000000000000000000"
|
|||
twilio_account_sid: ACEDERPDERP
|
||||
twilio_auth_token: derpderpderp
|
||||
twilio_service_sid: VADERPDERPDERP
|
||||
minfraud_account_id: 696969420
|
||||
minfraud_license_key: DERPDERPDERP
|
|
@ -18,6 +18,8 @@ development:
|
|||
paypal_api_signature: tonz
|
||||
letsencrypt_key: ./tests/files/letsencrypt.key
|
||||
letsencrypt_endpoint: https://acme-staging.api.letsencrypt.org/
|
||||
minfraud_account_id: 696969420
|
||||
minfraud_license_key: DERPDERPDERP
|
||||
proxy_ips:
|
||||
- 10.0.0.1
|
||||
- 10.0.0.2
|
||||
|
@ -58,3 +60,5 @@ test:
|
|||
twilio_account_sid: ACEDERPDERP
|
||||
twilio_auth_token: derpderpderp
|
||||
twilio_service_sid: VADERPDERPDERP
|
||||
minfraud_account_id: 696969420
|
||||
minfraud_license_key: DERPDERPDERP
|
|
@ -179,3 +179,9 @@ Money.default_currency = Money::Currency.new("USD")
|
|||
Money.rounding_mode = BigDecimal::ROUND_HALF_UP
|
||||
|
||||
$twilio = Twilio::REST::Client.new $config['twilio_account_sid'], $config['twilio_auth_token']
|
||||
|
||||
Minfraud.configure do |c|
|
||||
c.account_id = $config['minfraud_account_id']
|
||||
c.license_key = $config['minfraud_license_key']
|
||||
c.enable_validation = true
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue