-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv-dev
127 lines (114 loc) · 3.51 KB
/
env-dev
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
#
# Database
#
DB_DRIVER="postgres"
DB_HOST="localhost"
DB_NAME="apt_registry_development"
DB_USER="dev_user"
DB_PASSWORD="password"
DB_PORT=5432
DB_USE_SSL=false
#
# Keys for cookie encryption
#
# Use single quotes on this so that viper does not
# try to interpret dollar signs as vars.
#
COOKIE_HASH_KEY='y0b6|UBJQ(N$KB)jAJYL-aj=:q?;yK64^TPch0=|1XNnv{X@QrL#?80u$1]LcBF'
COOKIE_BLOCK_KEY='4Qdnm4acxfAILGEFQ3jUj0PoLbMWbyMm'
#
# Session Cookie - max age is in seconds (43,200 = 12 hours)
#
COOKIE_DOMAIN="localhost"
SESSION_MAX_AGE=43200
SESSION_COOKIE_NAME="aptrust_session"
FLASH_COOKIE_NAME="aptrust_flash"
PREFS_COOKIE_NAME="aptrust_prefs"
#
# Serve cookies only via https?
# Set this to true outside of the dev and test environments.
#
HTTPS_COOKIES=false
#
# NSQ_URL is the URL for pushing items into work queues.
#
# To queue an item, we post a WorkItem ID to {NSQ_URL}/pub?topic=topic_name
# The WorkItem ID is the body of the POST request.
#
# Note that NSQ typically runs on port 4151, and it runs a lookup daemon
# on port 4161 and a Web UI on port 4171. We just need 4151 for pushing
# items into queues.
#
NSQ_URL='http://localhost:4151'
#
# Two-Factor auth settings.
#
# If you have valid AWS credentials in ~/.aws/credentials
# and valid region in ~/.aws/config, set this to true to
# be able to send SMS messages for two-factor auth.
#
# For two factor to work, you'll need to set the following
# environment vars. We don't set these in the .env file for
# security reasons.
#
# AWS_ACCESS_KEY_ID=<your key id>
# AWS_SECRET_ACCESS_KEY=<your secret key>
# AWS_REGION=us-east-1
#
ENABLE_TWO_FACTOR_SMS=true
# If you have valid Authy keys, set this to true.
# You'll need to set the following env variable:
#
# AUTHY_API_KEY=<your key>
#
ENABLE_TWO_FACTOR_AUTHY=true
# How long should one-time passwords sent via text/SMS last?
# Use Go duration format. Examples:
# "60s" = 60 seconds
# "5m" = 5 minutes
# "2h" = 2 hours
OTP_EXPIRATION="15m"
# If email is enabled, we will send alerts, password reset notices, etc.
# via email. We want this to be true in production and demo, and maybe
# in staging as well. For dev, test, travis, it should probably be false
# to avoid spamming people (especially during automated testing).
#
# Note that, like SMS, the SES email service requires a region. Typically,
# that's set alongside the access key info in ~/.aws/config, but you can
# add it to this file if you like.
EMAIL_ENABLED=false
# This will be the from and reply-to address in emails generated by the
# Registry.
EMAIL_FROM_ADDRESS="[email protected]"
# REDIS_DEFAULT_DB is the number of the Redis DB in which preservation
# services keeps its data. This should be 0 in most cases.
REDIS_DEFAULT_DB= 0
# REDIS_PASSWORD is the password requried to connect to the Redis
# server. In dev and test, this should be an empty string.
REDIS_PASSWORD=""
# REDIS_URL is the URL of the Redis server in the format "host:port".
# The default port is 6379. For dev and test, this should be localhost:6379.
REDIS_URL="localhost:6379"
#
# Logging Levels, from https://github.com/rs/zerolog/blob/master/log.go
#
# -1 Trace
# 0 Debug
# 1 Info
# 2 Warn
# 3 Error
# 4 Fatal
# 5 Panic
# 6 None
# 7 Disabled
#
# If LOG_CALLER is set to true, we will log the filename and line number
# from which the logger was called.
#
# The logger will always log to LOG_FILE. If you want to log to the console
# as well, set LOG_TO_CONSOLE to true. This is useful in development.
LOG_FILE="~/tmp/logs/registry_dev.log"
LOG_LEVEL=0
LOG_CALLER=false
LOG_TO_CONSOLE=true
LOG_SQL=false