Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the proxy for in recaptcha configuration?

I am using the recaptcha gem in Rails 3.1.0. I am following the instructions on the github page: https://github.com/ambethia/recaptcha

I have acquired the keys and am configuring recaptcha as shown below.

Recaptcha.configure do |config|
  config.public_key  = '6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy'
  config.private_key = '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
  config.proxy = 'http://myproxy.com.au:8080'
end

What is the purpose of config.proxy? What should I fill in for this?

like image 987
mushroom Avatar asked Nov 11 '12 23:11

mushroom


1 Answers

recaptcha requires web server with outgoing access to the internet. If you'd like to use specific web server for recaptcha, you need its address.

Otherwise, you can just comment it. It should work just fine.

Recaptcha.configure do |config|
  config.public_key  = '6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy'
  config.private_key = '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
  # config.proxy = 'http://myproxy.com.au:8080'
end
like image 119
Jason Kim Avatar answered Sep 23 '22 09:09

Jason Kim