Skip to content

Commit

Permalink
add elastic IP to allowed hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Apr 30, 2024
1 parent 88a8cd3 commit 4715bc6
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions base/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# TODO: update before prod release
SECRET_KEY = "django-insecure-=r_v_es6w6rxv42^#kc2hca6p%=fe_*cog_5!t%19zea!enlju"

ALLOWED_HOSTS = ["ec2-52-23-183-168.compute-1.amazonaws.com", "127.0.0.1"]
ALLOWED_HOSTS = ["ec2-100-27-57-47.compute-1.amazonaws.com", "127.0.0.1"]

# Env vars
AWS_ACCESS_KEY_ID = os.environ.get("PL_AWS_ACCESS_KEY_ID")
Expand Down Expand Up @@ -190,7 +190,7 @@
# LOGGING

# Setting the log level from an environment variable
LOG_LEVEL = os.getenv('LOG_LEVEL', 'INFO').upper()
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper()
log_level = getattr(logging, LOG_LEVEL, logging.INFO)
# print("LOG_LEVEL: ", LOG_LEVEL)

Expand All @@ -199,15 +199,13 @@
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"standard": {
"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
},
"standard": {"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"},
},
"handlers": {
"console": {
"level": log_level,
"class": "logging.StreamHandler",
"formatter": "standard"
"formatter": "standard",
},
},
"loggers": {
Expand All @@ -221,11 +219,8 @@
"level": log_level,
"propagate": False,
},
"": { # root logger
"handlers": ["console"],
"level": log_level
}
}
"": {"handlers": ["console"], "level": log_level}, # root logger
},
}

# Adding Watchtower logging handler for non-local environments
Expand Down

0 comments on commit 4715bc6

Please sign in to comment.