good day everyone, im trying to limit user connections to my openedx 
instance, im trying to do this with nginx`s geoip module. But everytime im 
getting an error. I've added map $geoip_country_code $good_country {
        default yes;
        CZ no;
        AZ no;
        UA no; 
        }
to nginx.conf file, and 
set $allowedips 0;
  if ($good_country = no) {
            set $allowedips 1;
  }

  if ($allowedips = 1) {
        return 404;
  }
to my sites-available/lms file. but its not working...

Is it real to make it?

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/1565eb66-05ce-4e8e-accd-1570bfce59e1%40googlegroups.com.

Reply via email to