-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.sample-env
69 lines (60 loc) · 3.38 KB
/
.sample-env
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
#######################################################################
# This is both the template for the file we use for all our #
# configuration, and at the same time the 'source code' that our #
# script `setup-env.js` uses to provide headers, titles, comments and #
# variable assignments. You're welcome to manually copy this file to #
# `.env` and fill it out but the file is formatted to be compatible #
# with `setup-env.js`. #
# The 'syntax' is: #
# - This first box is ignored (denoted by # at start and end of line) #
# - The rest of boxes like this are section headers and are printed #
# as is #
# - Comments (no # at end of line) are denoted by two #s in a row #
# - Subtitles (again no # at end of line) are denoted by one # #
#######################################################################
#######################################################################
######## DEVELOPMENT ########
#######################################################################
# Database related configuration
## You can probably just use the defaults for the following four unless you are doing something custom
DATABASE_HOST=127.0.0.1
DATABASE_USER=root
DATABASE_NAME=the_gazelle
DATABASE_ENCODING=utf8mb4_unicode_ci
## Just leave this one blank if you didn't set a password for you database.
## Also note that if you enabled defaults from your current file, even though
## the default says '[hidden]' if you just press enter your password will
## not change from the one you set previously
DATABASE_PASSWORD=
# Ports to run our servers on
## You can change these if you for some reason have other things running on these
## ports, but you most likely do not need to change these
DEVELOPMENT_MAIN_PORT=3000
DEVELOPMENT_ADMIN_PORT=4000
# Miscellaneous
## Absolute path of the root directory of this repository
ROOT_DIRECTORY=
#######################################################################
######## DEPLOYMENT ########
#######################################################################
# AWS S3 Config
## Needed for uploading images to S3. You most likely have these stored on another server
## where you can just copy it from that .env file. In case you have to get them from scratch
## you do this by by going to the Amazon AWS account > My Security Credentials >
## Access Keys (Access Key ID and Secret Access Key) > Generate new key.
AWS_S3_ACCESS_KEY_ID=
AWS_S3_SECRET_ACCESS_KEY=
# Config for sending notifications to Slack
## If you don't already have a bot created or are unsure where to find the token check out our guide at
## https://github.com/thegazelle-ad/gazelle-server/tree/master/docs/misc/managing-slack-bot.md
SLACK_API_TOKEN=
# Environment related
## Needed to make some important distinctions that are different on staging and
## production servers. This value should be either staging or production when deploying
## It should also be set to CI on CI, but CI doesn't use the setup script so we don't allow that
## option here
GAZELLE_ENV=development
# Ports to run our servers on
## The ports below are the ones we usually use, but feel free to change it up for any reason
DEPLOYMENT_MAIN_PORT=8001
DEPLOYMENT_ADMIN_PORT=8002