-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path.env.example
146 lines (98 loc) · 3.33 KB
/
.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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Access token secret passphrase
ACCESS_TOKEN_SECRET = "hello-i-am-an-access-token-secret-passphrase"
# Access token duration (3 months in dev, always in minutes)
ACCESS_TOKEN_DURATION = 120960
# API version
API_VERSION = "v1"
# CORS authorized domains, by coma separated WITHOUT spacing IE http://localhost:4200,http://my-domain.com
AUTHORIZED = "http://localhost:4200"
# Content delivery network
# CDN = ""
# Content-type for communication between api/clients
# CONTENT_TYPE = "application/json"
# API domain
DOMAIN = "localhost"
# Facebook oauth consumer ID
# FACEBOOK_CONSUMER_ID = ""
# Facebook oauth consumer secret
# FACEBOOK_CONSUMER_SECRET = ""
# Github oauth consumer id
# GITHUB_CONSUMER_ID = ""
# Github oauth consumer secret
# GITHUB_CONSUMER_SECRET = ""
# Google oauth consumer id
# GOOGLE_CONSUMER_ID = ""
# Google oauth consumer secret
# GOOGLE_CONSUMER_SECRET = ""
# Linkedin oauth consumer id
# LINKEDIN_CONSUMER_ID = ""
# Linkedin oauth consumer secret
# LINKEDIN_CONSUMER_SECRET = ""
# Logs directory path starting from process.cwd()/dist
# LOGS_PATH = "logs"
# Morgan logs pattern. See morgan doc.
# LOGS_TOKEN = ":remote-addr HTTP/:http-version :status :method :url :total-time[2]ms"
# Memory cache activated
# MEMORY_CACHE = 0
# Memory cache lifetime duration in milliseconds
# MEMORY_CACHE_DURATION = 5000
# Application port. Keep it different in development.env and test.env if you wish launch your tests when your api is running
PORT = 8101
# Refresh token lifetime duration
# REFRESH_TOKEN_DURATION = 30
# Refresh token secret
REFRESH_TOKEN_SECRET = "hello-i-am-a-refresh-token-secret-passphrase"
# Refresh token lifetime unity of duration hours|days|weeks|months
# REFRESH_TOKEN_UNIT = "days"
# Image resize activated
# RESIZE_IS_ACTIVE = 1
# Image master directory name
# RESIZE_PATH_MASTER = "master-copy"
# Image scales directory name
# RESIZE_PATH_SCALE = "rescale"
# Image extra-small size (px)
# RESIZE_SIZE_XS = 260
# Image small size (px)
# RESIZE_SIZE_SM = 320
# Image medium size (px)
# RESIZE_SIZE_MD = 768
# Image large size (px)
# RESIZE_SIZE_LG = 1024
# Image extra-large size (px)
# RESIZE_SIZE_XL = 1366
# SSL certificate path
# SSL_CERT = "path-to-my-ssl-key.pem"
# SSL key path
# SSL_KEY = "path-to-my-ssl-key.pem"
# Database engine
TYPEORM_TYPE = "mariadb"
# Database connection identifier
# TYPEORM_NAME = "default"
# Database server host. Use "db" with docker-compose, localhost otherwise.
TYPEORM_HOST = "localhost"
# Database name. Keep it different from your developement database.
TYPEORM_DB = "typeplate_test"
# Database user
TYPEORM_USER = "root"
# Database password
TYPEORM_PWD = "passw0rd"
# Database port
TYPEORM_PORT = "3306"
# TypeORM synchronization activated
# TYPEORM_SYNC = 0
# TypeORM queries logs activated
# TYPEORM_LOG = 0
# TypeORM cache activated. Relevant only if MEMORY_CACHE is disabled.
# TYPEORM_CACHE = 0
# TypeORM cache duration. Relevant only if MEMORY_CACHE is disabled.
# TYPEORM_CACHE_DURATION = 5000
# File upload directory path starting from process.cwd()/dist
# UPLOAD_PATH = "public"
# File upload max file size
# UPLOAD_MAX_FILE_SIZE = 2000000
# File upload max files number
# UPLOAD_MAX_FILES = 5
# File upload accepted file types in ARCHIVE,AUDIO,DOCUMENT,IMAGE,VIDEO
# UPLOAD_WILDCARDS = "ARCHIVE,AUDIO,DOCUMENT,IMAGE,VIDEO"
# Main app URL
URL = "http://localhost:8101"