# Path: madewithwagtail/settings/grains/django.py
# ALLOWED_HOSTS = ADDRESSES  # set by env vars


from madewithwagtail.settings.grains.django import ALLOWED_HOSTS
from madewithwagtail.settings import *
from typed_environment_configuration import *

_ENVVARS = [
    StringVariable("GOOGLE_MAPS_API_KEY", default=""),  # e.g. postgres URL
]

WAGTAIL_SITE_NAME = "Made with Wagtail"

# Search results template
WAGTAILSEARCH_RESULTS_TEMPLATE = 'core/search_results.html'

# Limit image upload size due to RAM constraints on containers
WAGTAILIMAGES_MAX_IMAGE_PIXELS = 30 * 1000 ** 2  # 30MP size limit

# BASE_URL is only used in emails from the wagtailadmin that
# are sent in a non-request-context, fixes moderation emails
# according to https://github.com/wagtail/wagtail/issues/826

# Path: madewithwagtail/settings/grains/django.py
# ALLOWED_HOSTS = ADDRESSES  # set by env vars


# Path: madewithwagtail/settings/grains/wagtail.py
from madewithwagtail.settings.grains.django import ALLOWED_HOSTS
from madewithwagtail.settings import *
from typed_environment_configuration import *


_ENVVARS = [
    StringVariable("GOOGLE_MAPS_API_KEY", default=""),  # e.g. postgres URL
]

WAGTAIL_SITE_NAME = "Made with Wagtail"

# Search results template
WAGTAILSEARCH_RESULTS_TEMPLATE = 'core/search_results.html'

# Limit image upload size due to RAM constraints on containers
WAGTAILIMAGES_MAX_IMAGE_PIXELS = 30 * 1000 ** 2  # 30MP size limit

# BASE_URL is only used in emails from the wagtailadmin that
# are sent in a non-request-context, fixes moderation emails
# according to https://github.com/wagtail/wagtail/issues/826

if ALLOWED_HOSTS and ALLOWED_HOSTS[0] != "*":