We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 704b021 + 746deb6 commit a3abec0Copy full SHA for a3abec0
helm-chart/templates/deployment.yaml
@@ -30,8 +30,10 @@ spec:
30
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
31
imagePullPolicy: {{ .Values.image.pullPolicy }}
32
command: [ 'python3', 'manage.py' ]
33
- args: [ 'runserver', '80' ]
+ args: [ 'runserver', '0.0.0.0:80' ]
34
env:
35
+ - name: DJANGO_ALLOWED_HOSTS
36
+ value: '*'
37
- name: PGHOST
38
value: {{ include "third-places.fullname" . }}-postgresql
39
- name: PGPORT
src/django/thirdplaces/settings.py
@@ -26,7 +26,7 @@
26
# SECURITY WARNING: don't run with debug turned on in production!
27
DEBUG = True
28
29
-ALLOWED_HOSTS = []
+ALLOWED_HOSTS = os.environ.get('DJANGO_ALLOWED_HOST').split(',')
# Application definition
0 commit comments