diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-03 11:20:29 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-03 11:20:29 +0700 |
| commit | d310daa2029f21d31e059ad1d482d12298a8f34a (patch) | |
| tree | 3dcf8530888febde08ff07409a35f7cfcb836ad3 /indoteknik_api/controllers/controller.py | |
| parent | 270c7e488aff428a1d8563d5b4e420b6f371e1ef (diff) | |
Update allowed ip address
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
| -rw-r--r-- | indoteknik_api/controllers/controller.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py index 35aee965..0b8aa64a 100644 --- a/indoteknik_api/controllers/controller.py +++ b/indoteknik_api/controllers/controller.py @@ -23,7 +23,11 @@ class Controller(http.Controller): except: remote_address = wsgienv['REMOTE_ADDR'] _logger.info("API Request from %s" % remote_address) - allowed_ip_address = ['127.0.0.1', '34.101.189.218', '34.101.55.147'] + allowed_ip_address = [ + '34.101.189.218', # server website production + '34.101.55.147', # server website development + '182.253.155.143', # rafizadanly localhost + ] if remote_address in allowed_ip_address: return True return False |
