This repository was archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.env
More file actions
39 lines (31 loc) · 1.3 KB
/
sample.env
File metadata and controls
39 lines (31 loc) · 1.3 KB
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
# This file contains evironment variables used in the application.
# To use this file:
# 1) Make a copy and name it .env
# 2) All lines are required unless marked optional.
# 3) Uncomment optional lines to utilize.
# 4) Replace values for each variable with your own
## URL to your MongoDB database
MONGO_DATABASE_URL=mongodb://localhost:27017/sapbashop
## (Optional) Credentials to MongoDB
#MONGO_DATABASE_USERNAME=
#MONGO_DATABASE_PASSWORD=
## Your secure password for the server and how long until tokens/cookies expire in days
JWT_SECRET=your-256-bit-secret
JWT_EXPIRES_IN=90d
JWT_COOKIE_EXPIRES_IN=90
## This is for the frontend to connect to the server RESTapi
## The URL must end with /api/v1 or current version number
## URL, default=http://localhost:8000/api/v1, use if not using default.
SAPBA_API_URL=http://localhost:8000/api/v1
## (Optional) Port for the app server, default=8000
#PORT=8000
## (Optional) Location to your TLS/SSL Certificates for HTTPS
#SAPBA_HTTPS_KEY=certs/localhost.key
#SAPBA_HTTPS_CERT=certs/localhost.crt
## (Optional) Your Outgoing email server, currently only used to reset forgotten passwords.
#SAPBA_EMAIL_HOST=smtp.service.io
#SAPBA_EMAIL_PORT=25
#SAPBA_EMAIL_USERNAME=username
#SAPBA_EMAIL_PASSWORD=password
## For use with Development
#NODE_ENV=production #production or development