forked from edgi-govdata-archiving/web-monitoring-db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
88 lines (72 loc) · 5.52 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
# Hostname where the site is located. Used for composing URLs outside of the
# HTTP request/response cycle (e.g. e-mails, async jobs)
HOST_URL='web-monitoring-db.dev'
# OPTIONAL: only set this if your database is at a different location than
# specified in config/database.yml
# DATABASE_URL=postgres://user:password@localhost:5432/db-name
# OPTIONAL: only set this if your Redis is at a non-standard location
# REDIS_URL=redis://user:password@localhost:6379
# E-mail address to use as the "from" address
MAIL_SENDER='[email protected]'
# OPTIONAL: Use the following to send e-mail via Postmark instead of sendmail
# (We use this in production)
# POSTMARK_API_TOKEN=XXX
# OPTIONAL: Use the following to send via SMTP instead of sendmail
# MAIL_SMTP_ADDRESS='smtp.example.com'
# MAIL_SMTP_DOMAIN='example.com'
# MAIL_SMTP_USER='some-email-account'
# MAIL_SMTP_PASSWORD='XXX'
# MAIL_SMTP_TLS='true'
# URLs that won't be downloaded and re-hosted when importing versions.
# When new page or version data is imported (e.g. via `POST /api/v0/imports`),
# the `uri` field points to a location where the raw HTTP response body is
# stored. If the `uri` host does *not* match one of the values in
# `ALLOWED_ARCHIVE_HOSTS`, the application downloads the data from `uri` and
# stores it (see `lib/archiver` for more). That way, we can ensure data is
# always available to API users from a reliable public location.
ALLOWED_ARCHIVE_HOSTS='https://edgi-web-monitoring-db.s3.amazonaws.com/ https://edgi-wm-versionista.s3.amazonaws.com/ https://edgi-wm-versionista.s3-us-west-2.amazonaws.com/ https://s3-us-west-2.amazonaws.com/edgi-wm-versionista/ https://edgi-versionista-archive.s3.amazonaws.com/ https://edgi-versionista-archive.s3-us-west-2.amazonaws.com/ https://s3-us-west-2.amazonaws.com/edgi-versionista-archive/'
# OPTIONAL: Uncomment & fill in to use S3 for storage instead of your local
# file system
# AWS_ACCESS_KEY_ID=XXX
# AWS_SECRET_ACCESS_KEY=XXX
# AWS_REGION=us-east-1
# # The bucket to use for publicly accessible raw version content
# AWS_ARCHIVE_BUCKET=some-public-archival-bucket
# # The bucket to use for internal temporary file storage
# AWS_WORKING_BUCKET=your-private-bucket
# If you are developing this web-monitoring-db Rails app + wm-differ-differ locally,
# then settings below are the default settings. If you are running against a
# production deployment, change 'localhost:8888' to the production URL.
DIFFER_DEFAULT=http://localhost:8888
# OPTIONAL: uncomment (and update) to expire any cached diffs from before this date
# CACHE_DATE_DIFFER=2018-01-05
# Set a private RSA key to use for signing auth tokens
# This MUST be replaced with a unique value in production!
# To generate a new key in Ruby:
# OpenSSL::PKey::RSA.generate(2048).to_s.gsub(/\n/, '')
# To generate a new key in Bash:
# ssh-keygen -t rsa -m PEM -P '' -f ./keyfile
# # Outputs a usable key:
# cat keyfile | tr -d '\n'
# # Clean up files made by ssh-keygen:
# rm keyfile keyfile.pub
TOKEN_PRIVATE_KEY='MIIEogIBAAKCAQEAufNrDQRl6Gj1yuga0DVHeJ4fi+lNWtn4S8XRU8/nBwm9v3ErSzTXHq/IqValOcqoJR3cUM8w4TZK0hkmb82CASUYVh0BOc/l3f1QBPtsewUQvLM9RUirkbMxH/RQNi+PI/2OJWlCU53TlXa5xw3pFHB+vLQajJw0hT8ikS4c/MQQTxAf9sku5yal1SUsI5eQDjNgp6x5dtwQmDvXwp6zOdSF4aBYvjJYRSOSKUFoBRj9En5Ky7qvCMHBinuZY+wXL0Df4UFZIvuwWJVR9wd3ATd/xBnfYbJLQnWMomERXQNEmJVaDH9bxe6Kh+2SoKl5Emd4ra8FA6Rlf9aZqeSE+wIDAQABAoIBAB2PNmtBUbnaRYhV0T1b2tqvuDATjDpu/+t7rMT3/a++uq0eHlW8Np4oL2vL3EQNlS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4cUwMKSBhgjcdw/UTD9/tneJOWTOHsyOMVgDcXV+Hb+VOw+V2OKg+gBeSAC7a2+di5c8I9mnYWQRc0ktsvdMOOGgdQY50='
# In production, use Redis for caching
# REDIS_CACHE_URL=redis://localhost:6379/0
# In production, set up Sentry.io for error tracking
# SENTRY_DSN=
# Set these if you are running rake tasks to import data from Google Sheets
# GOOGLE_CLIENT_ID=XYZ
# GOOGLE_CLIENT_SECRET=XYZ
# Toggle returning an object with all versions for pages.
# We are turning it off temporarily because of the large number of accumulated versions.
# See: https://github.com/edgi-govdata-archiving/web-monitoring-db/issues/264
# NOTE: This can be removed once this issue is resolved.
# https://github.com/edgi-govdata-archiving/web-monitoring-db/issues/274
ALLOW_VERSIONS_IN_PAGE_RESPONSES='false'
# Set this in production to look up the user associated with automatic
# annotations. Note a user with this e-mail must exist.
# AUTO_ANNOTATION_USER='[email protected]'
# Set to 'true' to require versions to have valid mime/content/media type fields
# in order to be automatically analyzed after importing.
# ANALYSIS_REQUIRE_MEDIA_TYPE='false'