limit connections

16 views
Skip to first unread message

edX project

unread,
Sep 26, 2016, 3:35:15 PM9/26/16
to General Open edX discussion
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?
Reply all
Reply to author
Forward
0 new messages