-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
74 lines (67 loc) · 3.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
################################################################################
# WEB PARAMETERS
################################################################################
# The port to expose the web container on
WEB_PORT=8080
################################################################################
# ZINC SERVER PARAMETERS
################################################################################
# WARNING: ZINC_ADMIN_USER and ZINC_ADMIN_PASSWORD can only be changed in
# the first run of the container, as the zinc server will create the admin
# user on the first run and will not allow it to be changed afterwards
# To change them, the zinc container must be deleted and recreated
# (however, its attached volume can be kept)
ZINC_ADMIN_USER=admin
ZINC_ADMIN_PASSWORD=Complexpass#123
# docker-compose.yml determines this
ZINC_HOST=zinc
ZINC_PORT=4080
# The retry interval to try to connect to the Zinc server (in seconds)
# The entrypoint script uses this to wait for the Zinc server to start
ZINC_RETRY_INTERVAL=5
################################################################################
# PROFILING PARAMETERS
################################################################################
# Enable the go profiling server, exposed on the PROFILING_PORT (see below)
ENABLE_PROFILING=false
INDEXER_ENABLE_PROFILING=false # For the indexer container
API_ENABLE_PROFILING=false # For the api container
# unless using docker-compose.yml, the indexer binary will use ENABLE_PROFILING
# docker-compose.yml overrides this to use the container-specific flags
# Port to expose the profiling server on
PROFILING_PORT=6060
INDEXER_PROFILING_PORT=6060 # For the indexer container
API_PROFILING_PORT=6061 # For the api container
# unless using docker-compose.yml, the indexer binary will use PROFILING_PORT
# docker-compose.yml overrides this to use the container-specific ports
################################################################################
# API PARAMETERS
################################################################################
# Port to expose the REST API on
API_PORT=3000
################################################################################
# INDEXER PARAMETERS
################################################################################
# The directory where the emails to be indexed are stored
# not really suppossed to be changed unless the mounted volume is changed
EMAILS_DIR=emails
# Remove the index if it already exists
REMOVE_INDEX_IF_EXISTS=false
# Prevents the indexer from indexing emails if the index already exists
# Useful for container restarts if the attached volumes aren't deleted
# Careful when using the REMOVE_INDEX_IF_EXISTS flag, as the uploading occurs
# after the index is removed, so this will be ignored
SKIP_UPLOAD_IF_INDEX_EXISTS=true
# Adjust these three to fine-tune the indexing performance
# The number of goroutines to use for parsing emails (from file to json)
NUM_PARSER_WORKERS=128
# The number of goroutines to use for uploading to zinc
NUM_UPLOADER_WORKERS=32
# The number of emails sent to zinc in a single bulk upload
BULK_UPLOAD_SIZE=5000
# The time to sleep after indexing is complete (in seconds)
# This is useful for the CPU profiler, as it may not have ended
# profiling by the time the indexing is complete, and the indexer
# might exit before the profiling is complete (which will cause
# the profiling data to be lost)
SLEEP_TIME_AFTER_INDEXING=0