File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,18 @@ There are many ways to get involved:
38
38
3 . Clone [ Apinf] ( https://github.com/apinf/api-umbrella-dashboard )
39
39
4 . Create [ ` settings.json ` ] ( #Settings.json )
40
40
5 . Type ` meteor --settings /path/to/settings.json ` in the project directory
41
-
41
+
42
42
# Settings.json
43
43
44
44
Your ` settings.json ` file should have the following structure:
45
45
46
46
```
47
47
{
48
+ "apinf": {
49
+ "host": "https://example.com/"
50
+ },
48
51
"api_umbrella": {
52
+ "host": "https://example.com/"
49
53
"api_key": "xxx",
50
54
"auth_token": "xxx",
51
55
"base_url": "https://example.com/api-umbrella/"
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Meteor.methods({
12
12
try {
13
13
14
14
// initial host for apinf
15
- var apinfHost = "https:// apinf.com" ;
15
+ var apinfHost = Meteor . settings . apinf . host ;
16
16
17
17
// response object from apinf GET request
18
18
var apinfResponse = Meteor . http . call ( "GET" , apinfHost ) ;
@@ -49,7 +49,7 @@ Meteor.methods({
49
49
try {
50
50
51
51
// initial host for API umbrella
52
- var apiUmbrellaHost = "https://umbrella.apinf.io/" ;
52
+ var apiUmbrellaHost = Meteor . settings . api_umbrella . host ;
53
53
54
54
// response object from API Umbrella GET request
55
55
var apiUmbrellaResponse = Meteor . http . call ( "GET" , apiUmbrellaHost ) ;
@@ -87,7 +87,7 @@ Meteor.methods({
87
87
88
88
try {
89
89
// initial host for elasticsearch instance
90
- var elasticsearchInstance = "http://apinf.com:14002/" ;
90
+ var elasticsearchInstance = Meteor . settings . elasticsearch . host ;
91
91
92
92
// response object from elasticsearch GET request
93
93
var elasticsearchResponse = Meteor . http . call ( "GET" , elasticsearchInstance ) ;
You can’t perform that action at this time.
0 commit comments