This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.json
67 lines (67 loc) · 1.44 KB
/
app.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"name": "navigator",
"scripts": {},
"env": {
"DJANGO_SETTINGS_MODULE": "navigator.settings.test",
"ADMIN_USER": {
"required": true
},
"ADMIN_PASSWORD": {
"required": true
},
"SECRET_KEY": {
"description": "The django app's sercret key",
"generator": "secret"
},
"SOO_HOST": {
"required": false
},
"HELP_HOST": {
"required": false
},
"SSO_HOST": {
"required": false
},
"PROFILE_HOST": {
"required": false
},
"ALLOWED_IPS": {
"required": false
},
"ALLOWED_IP_RANGES": {
"required": false
},
"RESTRICT_IPS": "True",
"ALLOW_ADMIN": "True",
"ALLOW_AUTHENTICATED": "True",
"AWS_STORAGE_BUCKET_NAME": "navigator-media.dev.uktrade.io",
"AWS_KEY_ID": {
"required": true
},
"AWS_SECRET_KEY": {
"required": true
}
},
"formation": {
"web": {
"quantity": 1
}
},
"addons": [
"heroku-postgresql"
],
"buildpacks": [
{
"url": "heroku/nodejs"
},
{
"url": "https://github.com/uktrade/navigator-buildpack"
},
{
"url": "heroku/python"
}
],
"scripts": {
"postdeploy": "echo \"from django.contrib.auth.models import User; import os; password = os.environ.get('ADMIN_PASSWORD', ''); username = os.environ.get('ADMIN_USER', ''); User.objects.create_superuser(username, '[email protected]', password)\" | python manage.py shell"
}
}