summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
-rw-r--r--indoteknik_api/controllers/controller.py6
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