Initial commit
This commit is contained in:
24
env/development.env
vendored
Normal file
24
env/development.env
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
## Environment ##
|
||||
NODE_ENV=development
|
||||
|
||||
|
||||
## Server ##
|
||||
PORT=3000
|
||||
HOST=localhost
|
||||
|
||||
|
||||
## Setup jet-logger ##
|
||||
JET_LOGGER_MODE=CONSOLE
|
||||
JET_LOGGER_FILEPATH=jet-logger.log
|
||||
JET_LOGGER_TIMESTAMP=TRUE
|
||||
JET_LOGGER_FORMAT=LINE
|
||||
|
||||
|
||||
## Authentication ##
|
||||
COOKIE_DOMAIN=localhost
|
||||
COOKIE_PATH=/
|
||||
SECURE_COOKIE=false
|
||||
JWT_SECRET=xxxxxxxxxxxxxx
|
||||
COOKIE_SECRET=xxxxxxxxxxxxxx
|
||||
# expires in 3 days
|
||||
COOKIE_EXP=259200000
|
||||
25
env/production.env
vendored
Normal file
25
env/production.env
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
## Environment ##
|
||||
NODE_ENV=production
|
||||
|
||||
|
||||
## Server ##
|
||||
PORT=8081
|
||||
HOST=localhost
|
||||
|
||||
|
||||
## Setup jet-logger ##
|
||||
JET_LOGGER_MODE=FILE
|
||||
JET_LOGGER_FILEPATH=jet-logger.log
|
||||
JET_LOGGER_TIMESTAMP=TRUE
|
||||
JET_LOGGER_FORMAT=LINE
|
||||
|
||||
|
||||
## Authentication ##
|
||||
# SECURE_COOKIE 'false' here for demo-ing. But ideally should be true.
|
||||
COOKIE_DOMAIN=localhost
|
||||
COOKIE_PATH=/
|
||||
SECURE_COOKIE=false
|
||||
JWT_SECRET=xxxxxxxxxxxxxx
|
||||
COOKIE_SECRET=xxxxxxxxxxxxxx
|
||||
# expires in 3 days
|
||||
COOKIE_EXP=259200000
|
||||
24
env/test.env
vendored
Normal file
24
env/test.env
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
## Environment ##
|
||||
NODE_ENV=test
|
||||
|
||||
|
||||
## Server ##
|
||||
PORT=4000
|
||||
HOST=localhost
|
||||
|
||||
|
||||
## Setup jet-logger ##
|
||||
JET_LOGGER_MODE=CONSOLE
|
||||
JET_LOGGER_FILEPATH=jet-logger.log
|
||||
JET_LOGGER_TIMESTAMP=TRUE
|
||||
JET_LOGGER_FORMAT=LINE
|
||||
|
||||
|
||||
## Authentication ##
|
||||
COOKIE_DOMAIN=localhost
|
||||
COOKIE_PATH=/
|
||||
SECURE_COOKIE=false
|
||||
JWT_SECRET=xxxxxxxxxxxxxx
|
||||
COOKIE_SECRET=xxxxxxxxxxxxxx
|
||||
# expires in 3 days
|
||||
COOKIE_EXP=259200000
|
||||
Reference in New Issue
Block a user