-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ts
34 lines (34 loc) · 1.2 KB
/
config.ts
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
const port = 3000;
const isHttps = false;
const ip = '127.0.0.1'
let baseURL;
if(isHttps){
baseURL = `https://${ip}:${port}`;
}else{
baseURL = `http://${ip}:${port}`;
}
const database_name= 'testiCantina';
const database_ip_docker='mongo';
const database_ip='127.0.0.1'; // change 127.0.0.1 to database_ip_docker to run test into docker shell
const database_port = 27017;
export const config = {
// The secret for the encryption of the jsonwebtoken
isHttps:false,
JWTsecret: 'mysecret',
baseURL: baseURL,
port: port,
database_url:'mongodb://'+database_ip_docker+':'+database_port+'/'+database_name,
database_url_local:'mongodb://'+database_ip+':'+database_port+'/'+database_name,
// The credentials and information for OAuth2
oauth2Credentials: {
client_id: "283447142110-4tg4vook1dcm1h54sl7a9be9tltj55n3.apps.googleusercontent.com",
project_id: "icantina", // The name of your project
auth_uri: "https://accounts.google.com/o/oauth2/auth",
token_uri: "https://oauth2.googleapis.com/token",
auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/v1/certs",
client_secret: "m064QDc4k-wuv2uuKZwegG9c",
redirect_uris: [
`${baseURL}/google/auth_callback`
]
}
};