Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
eba3d023
Commit
eba3d023
authored
Dec 13, 2019
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
env move
parent
c685d218
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
context.js
context.js
+1
-1
default.json
env/default.json
+10
-0
index.js
env/index.js
+1
-0
No files found.
context.js
View file @
eba3d023
var
_dot
=
require
(
'dot-prop'
);
var
CONFIG_PATH
=
__dirname
+
'/conf/config'
;
var
ENV_MAP
=
__dirname
+
'/
conf/
env'
;
var
ENV_MAP
=
__dirname
+
'/env'
;
var
cfg
=
require
(
CONFIG_PATH
);
...
...
env/default.json
0 → 100644
View file @
eba3d023
[
{
"env"
:
"BSCONFIG_AMQP_TYPE"
,
"conf"
:
"amqp.type"
},
{
"env"
:
"BSCONFIG_AMQP_URL"
,
"conf"
:
"amqp.url"
},
{
"env"
:
"BSCONFIG_MQTT_URL"
,
"conf"
:
"mqtt.url"
},
{
"env"
:
"BSCONFIG_MEMSTORE_TYPE"
,
"conf"
:
"memstore.type"
},
{
"env"
:
"BSCONFIG_MEMSTORE_URL"
,
"conf"
:
"memstore.url"
},
{
"env"
:
"BSCONFIG_STORAGE_REPOSITORY"
,
"conf"
:
"storage.repository"
},
{
"env"
:
"BSCONFIG_STORAGE_APIHOSTNAME"
,
"conf"
:
"storage.api_hostname"
},
{
"env"
:
"BSCONFIG_SECRET_TEXT"
,
"conf"
:
"auth.secret.value"
}
]
\ No newline at end of file
env/index.js
0 → 100644
View file @
eba3d023
module
.
exports
=
require
(
'./default.json'
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment