-
Notifications
You must be signed in to change notification settings - Fork 0
/
constantes.js
60 lines (54 loc) · 1.38 KB
/
constantes.js
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
const axios = require("axios");
const http = require("http");
const https = require("https");
const base_url_tfs = process.env.BASE_URL_TFS;
const base_url_azure = process.env.BASE_URL_AZURE;
const TOKEN_AZURE_BASE_64 = process.env.TOKEN_AZURE_BASE_64;
const TOKEN_TFS_BASE_64 = process.env.TOKEN_TFS_BASE_64;
const listaServicosConexoesSsh = [
{
host: "SSH_IP",
nome: "Publicação Desenvolvimento",
},
{
host: "SSH_IP",
nome: "Publicação Homologação",
},
{
host: "SSH_IP",
nome: "Publicação Produção",
},
];
const listaServicosNuget = [
{
nome: "Nuget Server",
url: "https://api.nuget.org/v3/index.json",
},
];
const customAxiosTfs = axios.create({
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: "Basic " + TOKEN_TFS_BASE_64,
},
httpAgent: new http.Agent({ keepAlive: true }),
httpsAgent: new https.Agent({ keepAlive: true }),
});
const customAxiosAzure = axios.create({
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: "Basic " + TOKEN_AZURE_BASE_64,
},
httpAgent: new http.Agent({ keepAlive: true }),
httpsAgent: new https.Agent({ keepAlive: true }),
});
module.exports = {
listaServicosConexoesSsh,
customAxiosTfs,
customAxiosAzure,
listaServicosNuget,
base_url_tfs,
base_url_azure,
TOKEN_AZURE_BASE_64
};