diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-03 11:24:04 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-03 11:24:04 +0700 |
| commit | bf2c45407b6bde11d63d4043435c932320f141de (patch) | |
| tree | b51d48160591371ff44ed3e739f2b7ebee5769a6 /indoteknik_api/controllers/controller.py | |
| parent | d310daa2029f21d31e059ad1d482d12298a8f34a (diff) | |
update allowed_ip_address
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
| -rw-r--r-- | indoteknik_api/controllers/controller.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py index 0b8aa64a..9de2fd4c 100644 --- a/indoteknik_api/controllers/controller.py +++ b/indoteknik_api/controllers/controller.py @@ -23,11 +23,13 @@ class Controller(http.Controller): except: remote_address = wsgienv['REMOTE_ADDR'] _logger.info("API Request from %s" % remote_address) - allowed_ip_address = [ - '34.101.189.218', # server website production - '34.101.55.147', # server website development - '182.253.155.143', # rafizadanly localhost - ] + allowed_ip_address = [] + # server website production + allowed_ip_address.append('34.101.189.218') + # server website development + allowed_ip_address.append('34.101.55.147') + # rafizadanly localhost + allowed_ip_address.append('182.253.155.143') if remote_address in allowed_ip_address: return True return False |
