-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.env.example
40 lines (34 loc) · 1013 Bytes
/
.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
# Application port (for both inside and outside docker)
# You can browse locally to http://localhost:<PORT>
PORT=2000
# Application env:
# Options: dev, prod, test
APP_ENV=prod
# Database credentials
# (These are translated to APP_DB_DSN automatically in docker-compose)
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=urlsh
DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST:-urlshdb}:${POSTGRES_PORT:-5432}/${POSTGRES_DB}
# Redis host:port
# (Ideally, this app should work without cache)
REDIS_URL=redis://urlshcache:6379/0
# Controls same url to be shortened again or not
# Options: 0, 1
APP_ALLOW_DUPE_URL=1
APP_CHECK_URL_REACH=0
#
# Static auth token for admin endpoints
# To be sent in request header:
# Authorization: Bearer <token>
#
APP_ADMIN_TOKEN=qazwsxedcrfvtgbyhnujmikolp
#
# OpenID credentials
GOOGLE_CLIENT_ID=x
GOOGLE_CLIENT_SECRET=x
MICROSOFT_TENANT_ID=x
MICROSOFT_CLIENT_ID=x
MICROSOFT_CLIENT_SECRET=x
YAHOO_CLIENT_ID=x
YAHOO_CLIENT_SECRET=x