11const apiEntrepriseBaseUrl = "https://entreprise.api.gouv.fr" ;
2+ const assistanceBaseUrl = "https://vao-assistance.atlassian.net" ;
23
34module . exports = {
45 accessToken : {
5- algorithm : "RS256" ,
66 expiresIn : 30 * 60 * 1000 , // 30 min
7- secret : process . env . ACCESS_TOKEN_SECRET ,
87 } ,
98
9+ algorithm : "HS256" ,
10+
1011 antivirusUrl : process . env . ANTIVIRUS_URL ,
1112
1213 apiAdresse : {
@@ -29,7 +30,10 @@ module.exports = {
2930 } ,
3031 apiToken : {
3132 expiresIn : 365 * 24 * 60 * 60 * 1000 ,
32- tokenSecret : process . env . API_TOKEN_SECRET_PRIV ,
33+ } ,
34+ assistance : {
35+ uriFaq : `${ assistanceBaseUrl } /servicedesk/customer/portals` ,
36+ uriNewRequest : `${ assistanceBaseUrl } /servicedesk/customer/portal/1/group/2/create/10` ,
3337 } ,
3438 authentification : {
3539 lockoutTime : 15 ,
@@ -77,13 +81,10 @@ module.exports = {
7781 } ,
7882
7983 refreshToken : {
80- algorithm : "RS256" ,
8184 expiresIn : 4 * 60 * 60 * 1000 , // 4h
82- secret : process . env . REFRESH_TOKEN_SECRET ,
8385 } ,
8486 resetPasswordToken : {
8587 expiresIn : 30 * 60 * 1000 , // 30 min
86- secret : process . env . RESET_PASSWORD_TOKEN_SECRET ,
8788 } ,
8889 senderEmail : process . env . SENDER_EMAIL ,
8990 sentry : {
@@ -103,9 +104,10 @@ module.exports = {
103104 secure : process . env . SMTP_IS_SECURE === "true" ,
104105 } ,
105106 tmpDirectory : process . env . TMP_DIRECTORY ,
106- tokenSecret : process . env . TOKEN_SECRET ,
107+ tokenSecret : process . env . TOKEN_SECRET_LINK ,
108+ tokenSecret_BO : process . env . TOKEN_SECRET_BO ,
109+ tokenSecret_FO : process . env . TOKEN_SECRET_FO ,
107110 validationToken : {
108111 expiresIn : 60 * 60 * 1000 , // 1h
109- secret : process . env . VALIDATION_TOKEN_SECRET ,
110112 } ,
111113} ;
0 commit comments