-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_credentials.sh
72 lines (64 loc) · 1.72 KB
/
setup_credentials.sh
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
68
69
70
71
72
#!/bin/bash
#
# setup.env.sh
# The purpose of this script is to setup sample environment variables for this project. It is up to the responsibility of the developer to change these values once they are generated for production use.
#
# Step 1: Clear the file.
clear;
cat > workery/workery/.env << EOL
#--------#
# Django #
#--------#
SECRET_KEY=l7y)rwm2(@nye)rloo0=ugdxgqsywkivdqugj76w)s!!ns
DEBUG=True
ALLOWED_HOSTS='*'
ADMIN_NAME='Bartlomiej Mika'
#----------#
# Database #
#----------#
DATABASE_URL=postgis://django:123password@localhost:5432/workery_db
DB_NAME=workery_db
DB_USER=django
DB_PASSWORD=123password
DB_HOST=localhost
DB_PORT="5432"
#-------#
# Email #
#-------#
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
MAILGUN_ACCESS_KEY=<YOU_NEED_TO_PROVIDE>
MAILGUN_SERVER_NAME=over55london.ca
#----------------#
# Django-Htmlmin #
#----------------#
HTML_MINIFY=True
KEEP_COMMENTS_ON_MINIFYING=False
#--------#
# Sentry #
#--------#
SENTRY_RAVEN_CONFIG_DSN=https://xxxx:[email protected]/zzzzzzzz
#--------#
# AWS S3 #
#--------#
AWS_S3_HOST=''
AWS_ACCESS_KEY_ID=''
AWS_SECRET_ACCESS_KEY=''
AWS_STORAGE_BUCKET_NAME=''
AWS_S3_CUSTOM_DOMAIN=''
AWS_BACKUP_BUCKET_NAME=''
#--------------------------------#
# Application Specific Variables #
#--------------------------------#
WORKERY_DJANGO_STATIC_HOST=None
WORKERY_LOGLEVEL=INFO
WORKERY_APP_HTTP_PROTOCOL=http://
WORKERY_APP_HTTP_DOMAIN=workery.ca
WORKERY_APP_DEFAULT_MONEY_CURRENCY=CAD
WORKERY_GITHUB_WEBHOOK_SECRET=None
EOL
# Developers Note:
# (1) Useful article about setting up environment variables with travis:
# https://stackoverflow.com/a/44850245