File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ require('dotenv').config();
2
2
var https = require ( 'https' ) ;
3
3
4
4
var ovh = require ( 'ovh' ) ( {
5
- endpoint : 'ovh-eu' ,
5
+ endpoint : process . env . APP_ENDPOINT ,
6
6
appKey : process . env . APP_KEY ,
7
7
appSecret : process . env . APP_SECRET ,
8
8
consumerKey : process . env . CONSUMER_KEY
Original file line number Diff line number Diff line change @@ -14,11 +14,21 @@ Go to [https://api.ovh.com/createToken/?GET=/me/*](https://api.ovh.com/createTok
14
14
Then create a .env file in your folder
15
15
16
16
````
17
+ APP_ENDPOINT = "<YOUR APP ENDPOINT>"
17
18
APP_KEY = "<YOUR APP KEY>"
18
19
APP_SECRET = "<YOUR SECRET>"
19
20
CONSUMER_KEY= "<YOUR CONSUMER KEY>"
20
21
````
21
22
23
+ ### About endpoints
24
+
25
+ * OVH Europe: ovh-eu (default)
26
+ * OVH North-America: ovh-ca
27
+ * RunAbove: runabove-ca
28
+ * SoYouStart Europe: soyoustart-eu
29
+ * SoYouStart North-America: soyoustart-ca
30
+ * Kimsufi Europe: kimsufi-eu
31
+ * Kimsufi North-America: kimsufi-ca
22
32
23
33
## Usage
24
34
You can’t perform that action at this time.
0 commit comments