Skip to content

Commit a3abec0

Browse files
Merge pull request #55 from CodeForPhilly/develop
Release: v0.1.8
2 parents 704b021 + 746deb6 commit a3abec0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

helm-chart/templates/deployment.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ spec:
3030
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3131
imagePullPolicy: {{ .Values.image.pullPolicy }}
3232
command: [ 'python3', 'manage.py' ]
33-
args: [ 'runserver', '80' ]
33+
args: [ 'runserver', '0.0.0.0:80' ]
3434
env:
35+
- name: DJANGO_ALLOWED_HOSTS
36+
value: '*'
3537
- name: PGHOST
3638
value: {{ include "third-places.fullname" . }}-postgresql
3739
- name: PGPORT

src/django/thirdplaces/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# SECURITY WARNING: don't run with debug turned on in production!
2727
DEBUG = True
2828

29-
ALLOWED_HOSTS = []
29+
ALLOWED_HOSTS = os.environ.get('DJANGO_ALLOWED_HOST').split(',')
3030

3131

3232
# Application definition

0 commit comments

Comments
 (0)