forked from AgileVentures/shf-project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.example
228 lines (171 loc) · 8.41 KB
/
.env.example
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# The system expects the following variables (keys) and values to be set
# in the operating system environment or in a .env file.
#
# This file is an *example* to show you the variables that are expected.
# The deployment keys and values MUST be in a file named '.env' (See below)
#
# Contact the project admin to get the real values.
#
# DO NOT EVER COMMIT THE .env FILE TO GitHub OR ANY OTHER REPOSITIORY.
# YOUR .gitignore SHOULD INCLUDE .env SO THIS NEVER HAPPENS.
# -----------------------------------
# Keys and values used by the system:
# -----------------------------------
#
# These MUST be defined as environment variables in your operating system.
# You must have a valid Google API key. (Contact the project admin for the
# key for this project.)
GOOGLE_MAP_API=1234567890
SECRET_KEY_BASE='some_long_string'
SHF_PROJECT_DATABASE_PASSWORD='project_db_password'
SHF_ADMIN_EMAIL='admin@example.com'
SHF_ADMIN_PWD='password'
PAPERCLIP_HASH_SECRET='some_long_string'
# -------------------------------------------------------------------------------------------------
# Klarna
SHF_KLARNA_CHECKOUT_URL = 'https://api.playground.klarna.com/checkout/v3/orders/'
SHF_KLARNA_ORDER_MGMT_URL = 'https://api.playground.klarna.com/ordermanagement/v1/orders/'
SHF_KLARNA_API_AUTH_USERNAME_DEV = 'PK37529_9397d245f192'
SHF_KLARNA_API_AUTH_PASSWORD_DEV = 'oQDZtwYlJIqVRi1R'
# --------------------------------------------------------
# Sending email:
MAILGUN_API_KEY=app-account-key
MAILGUN_DOMAIN=app-email-domain
MAILGUN_SANDBOX_DOMAIN=sandboxlongkey.mailgun.org
# for testing with MailGun:
MAILGUN_PUB_APIKEY='pubkey-413df91da58de5a6c07bebd4127b2d27'
MAILGUN_TESTDOMAIN='sandbox6aa7924ba3a34250b8b8291a651544f8.mailgun.org'
SHF_SENDER_EMAIL='info@sverigeshundforetagare.se'
SHF_EMAIL_DISPLAY_NAME='Sveriges Hundföretagare'
SHF_FROM_EMAIL='info@sverigeshundforetagare.se'
SHF_REPLY_TO_EMAIL='medlem@sverigeshundforetagare.se'
SHF_NOREPLY_EMAIL='noreply@sverigeshundforetagare.se'
SHF_MEMBERSHIP_EMAIL='medlem@sverigeshundforetagare.se'
# note that the protocol ("http://") and port must be in the URL
# for development, this might be: SHF_MAIL_ASSETS_HOST = 'http://localhost:3000'
SHF_MAIL_ASSETS_HOST = 'http://example.com'
# --------------------------------------------------------
# User Checklists
# This is the new name for the variable starting with PR 801:
SHF_MEMBERSHIP_GUIDELINES_CHECKLIST_REQD_START=2020-03-01
# ------------------------------------------
# These are optional environment variables:
#
RAILS_MAX_THREADS='5' # default (used in database.yml, puma.rb)
BUNDLE_GEMFILE='Gemfile' # default (used in bin/bundle, config/boot.rb)
PORT=3000 # default (used in puma.rb)
# !! THE FOLLOWING LINE SHOULD BE COMMENTED OUT on PRODUCTION SERVER! If running in production on a local machine without a webserver (e.g. nginx, etc), uncomment this
RAILS_SERVE_STATIC_FILES # (used in config/environments/production.rb)
RAILS_LOG_TO_STDOUT # (used in config/environments/production.rb)
# Can also be set in any other environment, where
# it will be used by ActivityLogger
HEROKU_STAGING # (used in db/seeds.rb) uncomment if this is true (e.g. on Heroku)
DEFAULT_HOST='example.com' # (used in emails to provide links to the site). Needed for heroku
SHF_SEED_USERS=40 # The number of users to create during seeding (Takes precedence of the default number in seeds.db). Seed with a minimum of 4 users to cover: admin, no application, single application, double application
SHF_FIRST_MEMBERSHIP_NUMBER=100 # The first membershipnumber used if the database is recreated. For systems that are already in production this number is overridden by the maximum membership_number in the db + 1
SHF_BETA='no'
#REDIS_PROVIDER=redis://localhost:6379
#--------------------------------------------------
# Show pre-release features
#
#SHF_SHOW_FEATURE='no'
# ^^ This is used to support pre-release features that are delivered to
# production but not yet made visible to users.
# Most of the time, you WILL NOT define this var as the default logic used
# in production code is to not make the specific feature visible.
# Assign the var as shown if you wish to make it visible.
# Also, if you want to toggle visibility for your tests, define (or not)
# this var in .env.test
# -------------------------------------------
# Keys and values required for backups to AWS:
# -------------------------------------------
#
# These must be defined as environment variables in your operating system.
# Credentials:
SHF_AWS_S3_BACKUP_KEY_ID='your_aws_s3_key_id'
SHF_AWS_S3_BACKUP_SECRET_ACCESS_KEY='your_aws_s3_access_key'
# Backups storage location:
# bucket for testing:
SHF_AWS_S3_TEST_BACKUP_REGION='eu-north-1'
SHF_AWS_S3_TEST_BACKUP_BUCKET='shf-test-backups'
# real production backups bucket:
SHF_AWS_S3_BACKUP_REGION='region-id'
SHF_AWS_S3_BACKUP_BUCKET='bucket-name'
SHF_AWS_S3_BACKUP_TOP_PREFIX='production_backup'
SHF_AWS_S3_BACKUP_PATH='path/to/backups'
# User uploaded files location:
SHF_AWS_S3_UPLOADS_REGION='region-id'
SHF_AWS_S3_UPLOADS_BUCKET='bucket-name'
SHF_AWS_S3_UPLOADS_USERFILES_PATH='path/to/uploads'
# ----------------------------------------
# Keys and values required for deployment:
# ----------------------------------------
#
# You must have a file named '.env' with these keys and values set.
# The Capistrano scripts use the 'dotenv' gem to read them from a .env file.
#
# You should make a copy of this file and name it '.env' and
# replace the values below with the real values needed.
#
# (If you are not deploying to the staging or production server, you do not need worry
# about the real values for these.)
SHF_STAGING_SERVER='xxx.xxx.xxx.xxx'
SHF_PRODUCTION_SERVER=xxx.xxx.xxx.xxx
SHF_DEPLOY_USER=some_user
SHF_APP_PATH=/path/to/app
# repo to use for deployment:
SHF_GIT_REPO='git@github.com:AgileVentures/shf-project.git'
# branch to use for deployment:
SHF_GIT_BRANCH='develop'
# ------------------------------------------------------------------------------
# Keys and values required for AWS information displayed on the admin dashboard:
# ------------------------------------------------------------------------------
#
# These must be defined as environment variables in your operating system.
# Credentials:
SHF_AWS_ADMIN_DASHBOARD_KEY_ID='key-for-aws'
SHF_AWS_ADMIN_DASHBOARD_SECRET_ACCESS_KEY='aws-access-key'
#Cost and Usage
# SHF Developer id:
SHF_AWS_DEVELOPER_KEY_ID='developer-key'
SHF_AWS_DEVELOPER_SECRET_ACCESS_KEY='dev-secret-key'
# --------------------------------------------------------
# Keys and values required for sending Slack Notifications (e.g. with the ExceptionNotification gem)
# --------------------------------------------------------
# Keep these commented out except on the actual production system,
# otherwise Dotenv will use these and actually send Slack notifications.
#SHF_SLACK_WEBHOOKURL="https://hooks.slack.com/services/whatever/slack/tells-you-this-is"
#SHF_SLACK_USERNAME='user-name-for-the-custom-app-set-up'
#SHF_SLACK_CHANNEL='#channel-name'
# ----------------------------------------
# Keys and values to connect to Dinkurs.se:
# ----------------------------------------
DINKURS_URL='https://dinkurs.se'
SHF_DINKURS_XML_URL='https://dinkurs.se/lxml.asp'
DINKURS_URL_COMPANY_ARG='yFKGQJ'
# --------------------------------------------
# Keys and values for Facebook OpenGraph (og):
# --------------------------------------------
#SHF_FB_APPID='1234567890' # this is used in seeding and tests
# (Contact the project admin for the app id for this project.)
# --------------------------------------------
# Condition processing: BACKUPS
# --------------------------------------------
SHF_BACKUP_FILES_DEST_DIR='/home/deploy/SHF_BACKUPS/'
SHF_BACKUP_DEFAULT_DAYS_TO_KEEP=11
SHF_BACKUP_DB_NAME = 'shf_project_production'
SHF_BACKUP_DB_BACKUP_FILEBASE = 'db_backup.sql'
SHF_BACKUP_DB_DAYS_TO_KEEP = 15
SHF_BACKUP_FILES_DAYS_TO_KEEP = 10
# --------------------------------------------
# GOOGLE API Service Account Credentials
# --------------------------------------------
SHF_GOOGLE_APPLICATION_CREDENTIALS_FILE="config/google-api-client-secrets.json"
SHF_GOOGLE_API_KEY='get-key-from-admin'
SHF_GOOGLE_PROJECT_ID='project-id'
SHF_GOOGLE_ACCOUNT_TYPE='service'
SHF_GOOGLE_ANALYTICS_VIEW_ID='view-id'
SHF_GOOGLE_CLIENT_EMAIL='gservice-account-email'
SHF_GOOGLE_UNIQUE_ID='project-id'
SHF_GOOGLE_PRIVATE_KEY='google-private-key'
# --------------------------------------------