-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.defaults
More file actions
225 lines (159 loc) · 7.25 KB
/
Copy path.env.defaults
File metadata and controls
225 lines (159 loc) · 7.25 KB
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
# Defaults for all available environment variables. These defaults reflect a
# development environment. To change these values, create a .env file (is in
# .gitignore) with overrides. For the test environment, use .env.test instead.
# set the database connection (see rails docs)
DATABASE_URL="mysql2://root:root@127.0.0.1/pandora_development?encoding=utf8&pool=1"
# set the directory where image data is stored and cached
PM_IMAGES_DIR="${PM_ROOT}/data/images"
# set the directory where originals can be found. Directories with originals
# within are symlinked to PM_IMAGES_DIR for sources without an entry in
# originals.yml
PM_ORIGINALS_DIR="${PM_ROOT}/data/originals"
# set the directory where the originals.yml file can be found.
PM_ORIGINALS_YML_DIR="${PM_ROOT}/rack-images"
# sets the directory where all the xml dumps are located. Make sure to keep the
# trailing slash
PM_DUMPS_DIR="${PM_ROOT}/data/dumps/"
# sets the elasticsearch data sub-directory where synonyms should be placed
PM_SYNONYMS_DIR="/vagrant/pandora/config/synonyms/"
# sets the directory where stats data is cached
PM_STATS_DIR="${PM_ROOT}/data/stats"
# where the rake tasks look for log files to parse for stats
PM_LOG_ARCHIVE_DIR="${PM_ROOT}/data/log_archive"
# where the rake tasks save and load index dump files from
PM_INDEX_PACK_DIR="${PM_ROOT}/data/index_packs"
# The directory where image vectors are located.
PM_VECTORS_DIR="${PM_ROOT}/data/vectors"
# Sets the base url for this installation. This is for contexts outside of
# the request cycle where the information can't be inferred from the deployment
# environment
PM_BASE_URL="http://localhost:3000"
# sets the maximum number of results per page
PM_MAX_PER_PAGE=500
# elasticsearch connection uri
PM_ELASTIC_URI="http://127.0.0.1:9200"
# specify the secret for image url signatures
PM_ASD_SECRET="some-asd-secret"
# specify the image url signature lifetime (in seconds)
PM_ASD_LIFETIME="3600"
# full url to the project home page
PM_HOME_URL="https://prometheus-bildarchiv.de"
# specify rack-images's url
PM_RACK_IMAGES_BASE_URL="http://localhost:3000/rack-images"
# the user is redirected here after logout
PM_LOGOUT_URL="${PM_BASE_URL}"
# configure if you want to use the paypal sandbox or the real thing
PM_PAYPAL_SANDBOX="false"
PM_PAYPAL_SELLER_ID=""
# sets the cookie secrets for each app (DO NOT USE THIS DEFAULT VALUE!)
PM_PANDORA_COOKIE_SECRET="Sheat9hee2PaecohpooJ1sa9xiungee8eiwiequui8or5iivaik4xohvoo8w"
# specifies the oauth secret
PM_OAUTH_SECRET="secret"
# sets the directory where legacy presentation PDFs are stored
PM_PRESENTATIONS_DIR="${PM_ROOT}/data/legacy_presentations"
# specify the where to send invoice notifications to
PM_INVOICE_NOTIFICATION_RECIPIENTS="invoice@example.com"
# specify the office info address
PM_INFO_ADDRESS="info@example.com"
# specify the sender address for newsletters
PM_NEWSLETTER_SENDER="newsletter@example.com"
# specify the address of the developer mailing list
PM_DEV_ADDRESS="dev@example.com"
# a salt to add when enrypting brain buster cookies (DO NOT USE THIS DEFAULT VALUE!)
PM_BRAIN_BUSTER_SALT="eecieHiewak6ep7mael9"
# the hash function to generate checksums for the ASD tokens, password digests
# etc.
PM_HASH_FUNCTION="sha256"
# the amount of times the above hash function should be applied
PM_HASH_ITERATIONS="5000"
# the default locale to use
PM_DEFAULT_LOCALE="en"
# connector and separator to handle textareas as multi-value fields
PM_TEXTAREA_CONNECTOR="\n"
PM_TEXTAREA_SEPARATOR='\r?\n'
# min/max rating values
PM_MIN_RATING="1"
PM_MAX_RATING="5"
# the version number of the current terms of use document
PM_TERMS_OF_USE_REVISION="6"
# the regex to validate letter-only values
PM_LETTER_ONLY_REGEX='(?:[A-Za-z]|[\u00C0-\u00F6\u00F8-\u00FF])'
# priority countries
PM_PRIORITY_COUNTRIES="Germany|Austria|Switzerland|France|Italy|Spain|United States"
# the current (default) api version
PM_DEFAULT_API_VERSION="v1"
# parser class name prefix
PM_INDEXING_PARSER_CLASS_NAME_PREFIX="Pandora::Indexing::Parser::"
# indexing results directory
PM_INDEX_RESULTS_DIR="${PM_ROOT}/data/index_results"
# --- OPTIONAL ---
# the following settings are optional
# set a global address to redirect all outgoing mail to (helpful for staging
# environments).
# PM_GLOBAL_MAIL_REDIRECT="dev@example.com"
# if this is set, the value can be used to authenticate as any user. This is for
# testing and debugging purposes
# PM_UNIVERSAL_PASSWORD="secret"
# sets a proxy server for image retrieval
# PM_IMAGE_PROXY="https://images.example.com"
# sets recipients for exception notifications, separated by space. The first
# entry is also used for the generated crontab's MAILTO variable
# PM_EXCEPTION_RECIPIENTS="dev@example.com ops@example.com"
# retry tests when they fail to overcome brittle test failures
# PM_RETRY_TESTS="true"
# override the umask value. This is especially useful if the apps are started
# by passenger which doesn't set a specific umask. Set it as integer
# PM_UMASK="0007"
# this is prepended to the PATH environment variable within generated crontab
# files. For example, it allows you to wrap existing executables to load rbenv.
# PM_CRON_BIN="/path/to/wrapper/scripts"
# set this if rake tasks should output as little as possible (e.g. to avoid)
# mails by cron
# PM_SILENT="true"
# allow CORS for prometheus app
# PM_ALLOW_CORS="true"
# PM_ALLOW_CORS_ORIGIN="http://localhost:8100"
# instead of warning when translations could not be found, raise an exception
# PM_RAISE_TRANSLATIONS="true"
# instead of real images, use the test image in pandora/public/images/test.png
# some tests require a real image though and this setting is deactivated for
# those tests
# PM_USE_TEST_IMAGE="true"
# override default (2000) rate limit of allowed calls per hour
# PM_API_RATE_LIMIT=4000
# skip DNS check for email domains
# PM_SKIP_EMAIL_DOMAIN_CHECK="true"
# set the url for the similarity image vector api
# PM_SIMILARITY_API_URL="https://api.example.com"
# show deployment information in the app header (branch, revision)
# PM_SHOW_DEPLOY_INFO="true"
# allow requests from these hosts without authentication, separate multiple
# ip addresses/ranges with a space. The effective user is 'superadmin'
# PM_TRUSTED_HOSTS="10.0.0.1/24 10.0.1.1"
# log full email headers and body when sending mail
# PM_FULL_EMAIL_LOGGING="true"
# do you want to use matomo analytics to track this installation?
# PM_MATOMO_URL="https://matomo.example.com"
# PM_MATOMO_SITE_ID="1"
# PM_MATOMO_DOMAIN="*.example.com"
# limit the amount of records indexed from each source
# PM_MAX_RECORDS_PER_SOURCE="100"
# specify a separate rack-images url for uploads
# PM_RACK_IMAGES_UPLOADS_BASE_URL="http://localhost:3000/rack-images-for-uploads"
# Index image vectors
# PM_INDEX_IMAGE_VECTORS="false"
# Send notifications when a source has completed indexing
# PM_INDEX_NOTIFY="developer@example.com"
# --- TESTING
# these options are required for testing
# the paypal buyer account used during tests
# PM_PAYPAL_BUYER_ID="paypal.sandbox-buyer@gmail.com"
# PM_PAYPAL_BUYER_PASSWORD=""
# override error handling for test env
# PM_PRODUCTION_ERROR_HANDLING="false"
# --- DEVELOPMENT
# a suffix for the vagrant vm, so we can have a different machines for each
# branch
# PM_VAGRANT_SUFFIX=""
# a rails setting to disable warnings when running db rake tasks
DISABLE_DATABASE_ENVIRONMENT_CHECK=1